summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Network.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OSSupport/Network.cpp b/src/OSSupport/Network.cpp
index c26a8e17d..decd111ea 100644
--- a/src/OSSupport/Network.cpp
+++ b/src/OSSupport/Network.cpp
@@ -854,6 +854,9 @@ cServerHandleImplPtr cServerHandleImpl::Listen(
bool cServerHandleImpl::Listen(UInt16 a_Port)
{
+ // Make sure the cNetwork internals are innitialized:
+ cNetworkSingleton::Get();
+
// Set up the main socket:
// It should listen on IPv6 with IPv4 fallback, when available; IPv4 when IPv6 is not available.
bool NeedsTwoSockets = false;