diff options
author | Jose <jose@zeroc.com> | 2016-12-22 00:52:23 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-12-22 00:52:23 +0100 |
commit | ea1fecad5fa51ddb3c1604504cf69a9afc1a8a80 (patch) | |
tree | 68ed539541a921921f561b61f3532fad4692d8c1 /cpp/src/IceDiscovery/PluginI.cpp | |
parent | A few more version fixes (diff) | |
download | ice-ea1fecad5fa51ddb3c1604504cf69a9afc1a8a80.tar.bz2 ice-ea1fecad5fa51ddb3c1604504cf69a9afc1a8a80.tar.xz ice-ea1fecad5fa51ddb3c1604504cf69a9afc1a8a80.zip |
UWP test controller and related fixes
Diffstat (limited to 'cpp/src/IceDiscovery/PluginI.cpp')
-rw-r--r-- | cpp/src/IceDiscovery/PluginI.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/IceDiscovery/PluginI.cpp b/cpp/src/IceDiscovery/PluginI.cpp index 8599ef6df4a..6bbad49af4c 100644 --- a/cpp/src/IceDiscovery/PluginI.cpp +++ b/cpp/src/IceDiscovery/PluginI.cpp @@ -75,15 +75,15 @@ PluginI::initialize() address = properties->getPropertyWithDefault("IceDiscovery.Address", "ff15::1"); } int port = properties->getPropertyAsIntWithDefault("IceDiscovery.Port", 4061); - string interface = properties->getProperty("IceDiscovery.Interface"); + string intf = properties->getProperty("IceDiscovery.Interface"); if(properties->getProperty("IceDiscovery.Multicast.Endpoints").empty()) { ostringstream os; os << "udp -h \"" << address << "\" -p " << port; - if(!interface.empty()) + if(!intf.empty()) { - os << " --interface \"" << interface << "\""; + os << " --interface \"" << intf << "\""; } properties->setProperty("IceDiscovery.Multicast.Endpoints", os.str()); } @@ -91,9 +91,9 @@ PluginI::initialize() { ostringstream os; os << "udp"; - if(!interface.empty()) + if(!intf.empty()) { - os << " -h \"" << interface << "\""; + os << " -h \"" << intf << "\""; } properties->setProperty("IceDiscovery.Reply.Endpoints", os.str()); } @@ -118,9 +118,9 @@ PluginI::initialize() { ostringstream os; os << "udp -h \"" << address << "\" -p " << port; - if(!interface.empty()) + if(!intf.empty()) { - os << " --interface \"" << interface << "\""; + os << " --interface \"" << intf << "\""; } lookupEndpoints = os.str(); } |