diff options
Diffstat (limited to 'cpp/test/Ice/locationForward/Server.cpp')
-rw-r--r-- | cpp/test/Ice/locationForward/Server.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/test/Ice/locationForward/Server.cpp b/cpp/test/Ice/locationForward/Server.cpp index ddf7991b603..f5052e6faba 100644 --- a/cpp/test/Ice/locationForward/Server.cpp +++ b/cpp/test/Ice/locationForward/Server.cpp @@ -62,16 +62,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) } ostringstream endpts; - - Ice::PropertiesPtr properties = communicator->getProperties(); - string protocol = properties->getProperty("Ice.Protocol"); - - if (protocol.empty()) - { - protocol = "tcp"; - } - - endpts << protocol << " -p " << port; + endpts << "default -p " << port; Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts.str()); Ice::ObjectPtr object = new TestI(adapter, fwd); adapter->add(object, Ice::stringToIdentity("test")); |