Logan oos Even
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/edge_utils.c
|
|
@ -2606,6 +2606,9 @@ void process_udp (n2n_edge_t *eee, const struct sockaddr_in *sender_sock, const |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
eee->sn_wait = 0; |
|
|
|
reset_sup_attempts(eee); /* refresh because we got a response */ |
|
|
|
|
|
|
|
// update last_sup only on 'real' REGISTER_SUPER_ACKs, not on bootstrap ones (own MAC address
|
|
|
|
// still null_mac) this allows reliable in/out PACKET drop if not really registered with a supernode yet
|
|
|
|
if(!is_null_mac(eee->device.mac_addr)) { |
|
|
@ -2618,9 +2621,6 @@ void process_udp (n2n_edge_t *eee, const struct sockaddr_in *sender_sock, const |
|
|
|
eee->last_sup = now; |
|
|
|
} |
|
|
|
|
|
|
|
eee->sn_wait = 0; |
|
|
|
reset_sup_attempts(eee); /* refresh because we got a response */ |
|
|
|
|
|
|
|
// NOTE: the register_interval should be chosen by the edge node based on its NAT configuration.
|
|
|
|
// eee->conf.register_interval = ra.lifetime;
|
|
|
|
|
|
|
|