]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Keep last known address and time since reachability changed.
[meshlink] / src / net_packet.c
index d45f0d03463459faf9cec04563a2528b4e36feba..abfb55c411435af0e07d56ab021d9c7c01bbb742 100644 (file)
@@ -797,7 +797,7 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
        for(node = edge_weight_tree->head; node; node = node->next) {
                e = node->data;
 
-               if(e->to == myself)
+               if(!e->to->status.reachable || e->to == myself)
                        continue;
 
                if(sockaddrcmp_noport(from, &e->address)) {