X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgraph.c;h=f5aff5bfd7a2511e71042162408e390a332d19ea;hp=c8430d8251552b2a4bafb5d68144a211c651d182;hb=369fe1ab1cbfc3f8305de1faab2e30157378b044;hpb=a227843b739d279b63adcf3736ebb03d856080c4 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); } } }