Do not consider unreachable nodes when trying to determine packet origin.
This commit is contained in:
parent
74e50d52e0
commit
4c68a8cb60
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue