mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-04 15:33:19 +00:00
Send more random pings
This commit is contained in:
parent
bed0b63bf6
commit
0edb934775
4
dns.c
4
dns.c
|
@ -183,13 +183,15 @@ dns_handle_tun(int fd, char *data, int len)
|
|||
void
|
||||
dns_ping(int dns_fd)
|
||||
{
|
||||
char data[3];
|
||||
if (dns_sending()) {
|
||||
printf("No reply on chunk, discarding\n");
|
||||
lastlen = 0;
|
||||
packetpos = 0;
|
||||
packetlen = 0;
|
||||
}
|
||||
dns_write(dns_fd, ++pingid, "", 0);
|
||||
snprintf(data, 3, "%02X", pingid);
|
||||
dns_write(dns_fd, ++pingid, data, 2);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue