Fix real lan network connection

This commit is contained in:
Benau 2016-04-01 09:59:16 +08:00
parent 894a38f6c7
commit 34f9d507d0

View File

@ -183,7 +183,8 @@ void ConnectToServer::asynchronousUpdate()
return;
}
if (m_server_address.getIP()
== NetworkConfig::get()->getMyAddress().getIP())
== NetworkConfig::get()->getMyAddress().getIP() ||
NetworkConfig::get()->isLAN())
{
// We're in the same lan (same public ip address).
// The state will change to CONNECTING