mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-27 12:05:15 +00:00
cleanup
This commit is contained in:
parent
a065151c1b
commit
bed0b63bf6
@ -55,7 +55,7 @@ tunnel(int tun_fd, int dns_fd)
|
|||||||
while (running) {
|
while (running) {
|
||||||
if (dnsd_hasack()) {
|
if (dnsd_hasack()) {
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 150000;
|
tv.tv_usec = 50000;
|
||||||
} else {
|
} else {
|
||||||
tv.tv_sec = 1;
|
tv.tv_sec = 1;
|
||||||
tv.tv_usec = 0;
|
tv.tv_usec = 0;
|
||||||
@ -69,9 +69,8 @@ tunnel(int tun_fd, int dns_fd)
|
|||||||
i = select(MAX(tun_fd, dns_fd) + 1, &fds, NULL, NULL, &tv);
|
i = select(MAX(tun_fd, dns_fd) + 1, &fds, NULL, NULL, &tv);
|
||||||
|
|
||||||
if(i < 0) {
|
if(i < 0) {
|
||||||
if (running) {
|
if (running)
|
||||||
warn("select");
|
warn("select");
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user