X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=9da552e743ccf36b4b8b2f834f4c0f6c2188e541;hb=7a71d48009e03ff1143a6e1084803f456a27c849;hp=506b6df57e09b81256053d27bb4056d63af0a908;hpb=6bc8df3e010509f69af95d2cc14ec893def6f644;p=tinc diff --git a/src/graph.c b/src/graph.c index 506b6df5..9da552e7 100644 --- a/src/graph.c +++ b/src/graph.c @@ -226,6 +226,9 @@ static void check_reachability(void) { n->name, n->hostname); } + if(experimental && OPTION_VERSION(n->options) >= 2) + n->status.sptps = true; + /* TODO: only clear status.validkey if node is unreachable? */ n->status.validkey = false; @@ -266,7 +269,7 @@ static void check_reachability(void) { if(!n->status.reachable) { update_node_udp(n, NULL); } else if(n->connection) { - if(experimental && OPTION_VERSION(n->options) >= 2) { + if(n->status.sptps) { if(n->connection->outgoing) send_req_key(n); } else {