mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
Send more random pings
This commit is contained in:
parent
bed0b63bf6
commit
0edb934775
1 changed files with 3 additions and 1 deletions
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