From 34f9d507d03278298c8d49ed46c5e21e345d9839 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 1 Apr 2016 09:59:16 +0800 Subject: [PATCH] Fix real lan network connection --- src/network/protocols/connect_to_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/protocols/connect_to_server.cpp b/src/network/protocols/connect_to_server.cpp index 524c37fff..d21a00888 100644 --- a/src/network/protocols/connect_to_server.cpp +++ b/src/network/protocols/connect_to_server.cpp @@ -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