Keep last known address and time since reachability changed.
This allows tincctl info to show since when a node is online or offline.
This commit is contained in:
parent
1e5deec973
commit
9ade39b7d5
6 changed files with 26 additions and 16 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue