Send ping on receive data

This commit is contained in:
Erik Ekman 2006-06-06 16:00:27 +00:00
parent e7aa847b08
commit ed9d4e7de1
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}
}
}