Avoid trying to send an ANS_KEY request to unreachable nodes.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 19:14:23 +0000 (21:14 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 19:14:23 +0000 (21:14 +0200)
commited070d754d1b5500b0ec3615ae342178cfd42efb
treeb9ab2c6e918a309fc9a6e91622c1fdc83ab812ab
parent5738cb517394d0d034acaa52df936b3b0b13a361
Avoid trying to send an ANS_KEY request to unreachable nodes.

We could have a REQ_KEY coming from a node that is not reachable; either
because DEL_EDGEs have overtaken the REQ_KEY, or perhaps if TunnelServer
is used and some nodes have a different view of reachability.

This might fix GitHub issue #247.
src/protocol_key.c