mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 18:15:13 +00:00
cleanup in dnstund.c
This commit is contained in:
parent
1fd044cbff
commit
4b85a1ece2
@ -72,11 +72,9 @@ tunnel(int tun_fd, int dns_fd)
|
|||||||
|
|
||||||
if(i != 0) {
|
if(i != 0) {
|
||||||
if(FD_ISSET(tun_fd, &fds)) {
|
if(FD_ISSET(tun_fd, &fds)) {
|
||||||
printf("data on tun\n");
|
|
||||||
read = read_tun(tun_fd, frame, 64*1024);
|
read = read_tun(tun_fd, frame, 64*1024);
|
||||||
if(read > 0) {
|
if(read > 0)
|
||||||
dnsd_queuepacket(frame->data, read - 4);
|
dnsd_queuepacket(frame->data, read - 4);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(FD_ISSET(dns_fd, &fds)) {
|
if(FD_ISSET(dns_fd, &fds)) {
|
||||||
read = dnsd_read(dns_fd, frame->data, 64*1024-4);
|
read = dnsd_read(dns_fd, frame->data, 64*1024-4);
|
||||||
|
Loading…
Reference in New Issue
Block a user