X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet_socket.c;h=cb2a6dfea699cc3b1ea487847445fce0d3131fc0;hb=079dcd01794187d2857e1233f6c9930310812593;hp=0ba2bf312757031970098b04efaacac02fa6028d;hpb=053af97c9e729ab485609e4202f5195fdc8aeeb5;p=meshlink diff --git a/src/net_socket.c b/src/net_socket.c index 0ba2bf31..cb2a6dfe 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -294,9 +294,6 @@ void retry_outgoing(outgoing_t *outgoing) { void finish_connecting(connection_t *c) { logger(DEBUG_CONNECTIONS, LOG_INFO, "Connected to %s (%s)", c->name, c->hostname); - if(proxytype != PROXY_EXEC) - configure_tcp(c); - c->last_ping_time = time(NULL); c->status.connecting = false; @@ -459,6 +456,7 @@ begin: } logger(DEBUG_CONNECTIONS, LOG_INFO, "Using proxy at %s port %s", proxyhost, proxyport); c->socket = socket(proxyai->ai_family, SOCK_STREAM, IPPROTO_TCP); + configure_tcp(c); } if(c->socket == -1) {