X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=506b6df57e09b81256053d27bb4056d63af0a908;hb=153abaa4d940bf2bc9bd7275d5efe5c01c354190;hp=b3a2c255c5945c4a1fe26a97f8de43f6ff01cfdb;hpb=248d300f1be0d5f2aae39202041699ab2b46c56b;p=tinc diff --git a/src/graph.c b/src/graph.c index b3a2c255..506b6df5 100644 --- a/src/graph.c +++ b/src/graph.c @@ -263,10 +263,16 @@ static void check_reachability(void) { subnet_update(n, NULL, n->status.reachable); - if(!n->status.reachable) + if(!n->status.reachable) { update_node_udp(n, NULL); - else if(n->connection) - send_ans_key(n); + } else if(n->connection) { + if(experimental && OPTION_VERSION(n->options) >= 2) { + if(n->connection->outgoing) + send_req_key(n); + } else { + send_ans_key(n); + } + } } } }