Do not consider unreachable nodes when trying to determine packet origin.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 19 Dec 2009 19:53:48 +0000 (20:53 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 19 Dec 2009 19:53:48 +0000 (20:53 +0100)
src/net_packet.c

index 64732d0..b50ddc4 100644 (file)
@@ -515,7 +515,7 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
        for(node = node_tree->head; node; node = node->next) {
                n = node->data;
 
-               if(n == myself || !digest_active(&n->indigest))
+               if(n == myself || !n->status.reachable || !digest_active(&n->indigest))
                        continue;
 
                if(try_mac(n, pkt)) {