summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpEndpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/UdpEndpoint.cpp')
-rw-r--r--cpp/src/Ice/UdpEndpoint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/UdpEndpoint.cpp b/cpp/src/Ice/UdpEndpoint.cpp
index ad60651d8c8..66f8a8b89d9 100644
--- a/cpp/src/Ice/UdpEndpoint.cpp
+++ b/cpp/src/Ice/UdpEndpoint.cpp
@@ -14,6 +14,7 @@
#include <Ice/BasicStream.h>
#include <Ice/LocalException.h>
#include <Ice/Instance.h>
+#include <Ice/DefaultsAndOverwrites.h>
using namespace std;
using namespace Ice;
@@ -111,7 +112,7 @@ IceInternal::UdpEndpoint::UdpEndpoint(const InstancePtr& instance, const string&
if (_host.empty())
{
- const_cast<string&>(_host) = _instance->defaultHost();
+ const_cast<string&>(_host) = _instance->defaultsAndOverwrites()->defaultHost;
}
}