projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Be liberal in accepting KEY_CHANGED/REQ_KEY/ANS_KEY requests.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
e501153
..
dcf8df6
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-353,10
+353,10
@@
static void send_udppacket(node_t *n, vpn_packet_t *origpkt) {
"No valid key known yet for %s (%s), forwarding via TCP",
n->name, n->hostname);
"No valid key known yet for %s (%s), forwarding via TCP",
n->name, n->hostname);
- if(
!n->status.waitingforkey)
+ if(
n->last_req_key + 10 < now) {
send_req_key(n);
send_req_key(n);
-
- n->status.waitingforkey = true;
+ n->last_req_key = now;
+ }
send_tcppacket(n->nexthop->connection, origpkt);
send_tcppacket(n->nexthop->connection, origpkt);