summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r--cpp/src/IcePack/Client.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp
index fe379cae26e..8b1be751591 100644
--- a/cpp/src/IcePack/Client.cpp
+++ b/cpp/src/IcePack/Client.cpp
@@ -142,19 +142,12 @@ Client::run(int argc, char* argv[])
return EXIT_FAILURE;
}
- const char* adminEndpointsProperty = "IcePack.Admin.Endpoints";
- string adminEndpoints = properties->getProperty(adminEndpointsProperty);
- if(adminEndpoints.empty())
- {
- cerr << appName() << ": property `" << adminEndpointsProperty << "' is not set" << endl;
- return EXIT_FAILURE;
- }
+ Ice::ObjectPrx base = communicator()->stringToProxy("IcePack/admin@IcePack.Admin");
- Ice::ObjectPrx base = communicator()->stringToProxy("admin:" + adminEndpoints);
AdminPrx admin = AdminPrx::checkedCast(base);
if(!admin)
{
- cerr << appName() << ": `" << adminEndpoints << "' are no valid administrative endpoints" << endl;
+ cerr << appName() << ": `" << "' are no valid administrative endpoints" << endl;
return EXIT_FAILURE;
}