mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
cleanup in dnstund.c
This commit is contained in:
parent
1fd044cbff
commit
4b85a1ece2
1 changed files with 1 additions and 3 deletions
|
@ -72,11 +72,9 @@ tunnel(int tun_fd, int dns_fd)
|
|||
|
||||
if(i != 0) {
|
||||
if(FD_ISSET(tun_fd, &fds)) {
|
||||
printf("data on tun\n");
|
||||
read = read_tun(tun_fd, frame, 64*1024);
|
||||
if(read > 0) {
|
||||
if(read > 0)
|
||||
dnsd_queuepacket(frame->data, read - 4);
|
||||
}
|
||||
}
|
||||
if(FD_ISSET(dns_fd, &fds)) {
|
||||
read = dnsd_read(dns_fd, frame->data, 64*1024-4);
|
||||
|
|
Loading…
Reference in a new issue