Fix for disabling LAN detection.

This commit is contained in:
hiker
2016-11-11 08:47:10 +11:00
parent 6065a6ce3e
commit 10575174fc

View File

@@ -66,7 +66,7 @@ void GetPeerAddress::asynchronousUpdate()
uint16_t port;
uint32_t my_ip = NetworkConfig::get()->getMyAddress().getIP();
if (m_address.getIP() == my_ip)
if (m_address.getIP() == my_ip && !NetworkConfig::m_disable_lan)
result->get("private_port", &port);
else
result->get("port", &port);