Try to connect anyway even without aloha message

This should allow clients with strong firewall to connect to
server not behind any firewall
This commit is contained in:
Benau 2018-03-16 01:14:43 +08:00
parent f78276a930
commit 2cedd6729a

View File

@ -159,9 +159,13 @@ void ConnectToServer::asynchronousUpdate()
} }
if (m_tried_connection++ > 10) if (m_tried_connection++ > 10)
{ {
Log::error("ConnectToServer", "Timeout waiting for aloha"); Log::warn("ConnectToServer", "Timeout waiting for"
m_state = NetworkConfig::get()->isWAN() ? " aloha, trying to connect anyway.");
HIDING_ADDRESS : DONE; m_state = CONNECTING;
// Reset timer for next usage
m_timer = 0.0;
m_tried_connection = 0;
return;
} }
if ((!NetworkConfig::m_disable_lan && if ((!NetworkConfig::m_disable_lan &&
m_server_address.getIP() == m_server_address.getIP() ==