diff --git a/src/network/child_loop.cpp b/src/network/child_loop.cpp index d9cf8a5d4..9c4605c9f 100644 --- a/src/network/child_loop.cpp +++ b/src/network/child_loop.cpp @@ -89,6 +89,8 @@ void ChildLoop::run() { NetworkConfig::get()->setIPType(NetworkConfig::IP_V4); NetworkConfig::get()->detectIPType(); + NetworkConfig::getByType(PT_MAIN)->setIPType( + NetworkConfig::get()->getIPType()); NetworkConfig::get()->setIsWAN(); NetworkConfig::get()->setIsPublicServer(); } diff --git a/src/network/network_config.hpp b/src/network/network_config.hpp index d1c4933c9..4bfa78a4c 100644 --- a/src/network/network_config.hpp +++ b/src/network/network_config.hpp @@ -130,6 +130,11 @@ public: return m_network_config[type]; } // get // ------------------------------------------------------------------------ + static NetworkConfig* getByType(ProcessType type) + { + return m_network_config[type]; + } // get + // ------------------------------------------------------------------------ static void destroy() { ProcessType type = STKProcess::getType();