From 2a7871990bc401921b8bb9accbc6a8206d564f72 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 1 Nov 2015 21:07:56 +0100 Subject: [PATCH] Update "now" after connect() when making outgoing connections. It could be that address resolution takes a long time, don't let that count against a connection. This is especially important when using a nameserver from the VPN. # Conflicts: # src/net_socket.c --- src/net_socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_socket.c b/src/net_socket.c index fab11d67..8983d289 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -552,6 +552,7 @@ begin: /* Now that there is a working socket, fill in the rest and register this connection. */ + c->last_ping_time = time(NULL); c->status.connecting = true; c->name = xstrdup(outgoing->name); #ifndef DISABLE_LEGACY -- 2.20.1