mirror of
https://github.com/ntop/n2n.git
synced 2024-11-05 06:17:58 +05:30
Fix auto IP tracking
This commit is contained in:
parent
f79153166b
commit
7c107887f4
@ -1145,6 +1145,9 @@ static int update_edge (n2n_sn_t *sss,
|
||||
/* Known */
|
||||
if(auth_edge(&(scan->auth), &(reg->auth), answer_auth, comm) == 0) {
|
||||
if(!sock_equal(sender_sock, &(scan->sock))) {
|
||||
scan->dev_addr.net_addr = reg->dev_addr.net_addr;
|
||||
scan->dev_addr.net_bitlen = reg->dev_addr.net_bitlen;
|
||||
memcpy((char*)scan->dev_desc, reg->dev_desc, N2N_DESC_SIZE);
|
||||
memcpy(&(scan->sock), sender_sock, sizeof(n2n_sock_t));
|
||||
scan->socket_fd = socket_fd;
|
||||
scan->last_cookie = reg->cookie;
|
||||
|
Loading…
Reference in New Issue
Block a user