Do not consider unreachable nodes when trying to determine packet origin.

This commit is contained in:
Guus Sliepen 2009-12-19 20:53:48 +01:00
parent 74e50d52e0
commit 4c68a8cb60

View 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)) {