mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-24 00:59:19 +02:00
Discard packets which only has data header
This commit is contained in:
parent
55d9ddb8dd
commit
d5f0dac459
|
@ -233,7 +233,7 @@ tunnel_dns(int tun_fd, int dns_fd)
|
||||||
char in[64*1024];
|
char in[64*1024];
|
||||||
size_t read;
|
size_t read;
|
||||||
|
|
||||||
if ((read = read_dns(dns_fd, in, sizeof(in))) <= 0)
|
if ((read = read_dns(dns_fd, in, sizeof(in))) <= 2)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
outlen = sizeof(out);
|
outlen = sizeof(out);
|
||||||
|
|
Loading…
Reference in New Issue