mirror of
https://github.com/yarrick/iodine.git
synced 2025-03-10 23:33:34 +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
|
#endif
|
||||||
|
|
||||||
write_tun(tun_fd, frame, read + 4);
|
write_tun(tun_fd, frame, read + 4);
|
||||||
|
if (!dns_sending()) {
|
||||||
|
dns_ping(dns_fd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue