nego: print message when bypassing gateway

When "detect" is used as gateway usage method (which is the default)
it is tried to by-pass gateway connection for local hosts.
The detection might take some time therefore print a message that people
are aware that a detection is tried.

Fixes #2171
This commit is contained in:
Bernhard Miklautz 2014-12-08 19:00:05 +01:00
parent 67b6cc7518
commit 7b413fb951

View File

@ -230,6 +230,8 @@ BOOL nego_tcp_connect(rdpNego* nego)
if (nego->GatewayBypassLocal)
{
/* Attempt a direct connection first, and then fallback to using the gateway */
WLog_INFO(TAG, "Detecting if host can be reached locally. - This might take some time.");
WLog_INFO(TAG, "To disable auto detection use /gateway-usage-method:direct");
transport_set_gateway_enabled(nego->transport, FALSE);
nego->tcp_connected = transport_connect(nego->transport, nego->hostname, nego->port, 1);
}