Tell the main process network type
This commit is contained in:
parent
e584bced0e
commit
8b8f03ad75
@ -89,6 +89,8 @@ void ChildLoop::run()
|
|||||||
{
|
{
|
||||||
NetworkConfig::get()->setIPType(NetworkConfig::IP_V4);
|
NetworkConfig::get()->setIPType(NetworkConfig::IP_V4);
|
||||||
NetworkConfig::get()->detectIPType();
|
NetworkConfig::get()->detectIPType();
|
||||||
|
NetworkConfig::getByType(PT_MAIN)->setIPType(
|
||||||
|
NetworkConfig::get()->getIPType());
|
||||||
NetworkConfig::get()->setIsWAN();
|
NetworkConfig::get()->setIsWAN();
|
||||||
NetworkConfig::get()->setIsPublicServer();
|
NetworkConfig::get()->setIsPublicServer();
|
||||||
}
|
}
|
||||||
|
@ -130,6 +130,11 @@ public:
|
|||||||
return m_network_config[type];
|
return m_network_config[type];
|
||||||
} // get
|
} // get
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
static NetworkConfig* getByType(ProcessType type)
|
||||||
|
{
|
||||||
|
return m_network_config[type];
|
||||||
|
} // get
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
static void destroy()
|
static void destroy()
|
||||||
{
|
{
|
||||||
ProcessType type = STKProcess::getType();
|
ProcessType type = STKProcess::getType();
|
||||||
|
Loading…
Reference in New Issue
Block a user