projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update "now" after connect() when making outgoing connections.
[oweals/tinc.git]
/
src
/
net_socket.c
diff --git
a/src/net_socket.c
b/src/net_socket.c
index cb271063b0bc5d25ad22d3d0cec65e66ad5052f8..c167c2f3a5e00eb21f74b99897ac851b73b9404a 100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-457,8
+457,11
@@
begin:
freeaddrinfo(proxyai);
}
+ now = time(NULL);
+
if(result == -1) {
if(sockinprogress(sockerrno)) {
+ c->last_ping_time = now;
c->status.connecting = true;
return;
}