X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=f5aff5bfd7a2511e71042162408e390a332d19ea;hb=b1945f70fe993ca447555a1e27f35638b0c1fd8b;hp=c8430d8251552b2a4bafb5d68144a211c651d182;hpb=a227843b739d279b63adcf3736ebb03d856080c4;p=tinc diff --git a/src/graph.c b/src/graph.c index c8430d82..f5aff5bf 100644 --- a/src/graph.c +++ b/src/graph.c @@ -241,10 +241,10 @@ void sssp_bfs(void) { n->status.reachable = !n->status.reachable; if(n->status.reachable) { - ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Node %s (%s) became reachable"), + ifdebug(TRAFFIC) logger(LOG_DEBUG, "Node %s (%s) became reachable", n->name, n->hostname); } else { - ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Node %s (%s) became unreachable"), + ifdebug(TRAFFIC) logger(LOG_DEBUG, "Node %s (%s) became unreachable", n->name, n->hostname); } @@ -286,6 +286,9 @@ void sssp_bfs(void) { free(envp[i]); subnet_update(n, NULL, n->status.reachable); + + if(!n->status.reachable) + update_node_udp(n, NULL); } } }