mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
Send ping on receive data
This commit is contained in:
parent
e7aa847b08
commit
ed9d4e7de1
1 changed files with 3 additions and 0 deletions
3
dnstun.c
3
dnstun.c
|
@ -94,6 +94,9 @@ tunnel(int tun_fd, int dns_fd)
|
|||
#endif
|
||||
|
||||
write_tun(tun_fd, frame, read + 4);
|
||||
if (!dns_sending()) {
|
||||
dns_ping(dns_fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue