mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
fixed write warning
This commit is contained in:
parent
2e6a5876d6
commit
458117c14c
1 changed files with 6 additions and 3 deletions
|
@ -1189,10 +1189,13 @@ tunnel_dns()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (datalen) {
|
if (datalen) {
|
||||||
if (this.use_remote_forward)
|
if (this.use_remote_forward) {
|
||||||
write(STDOUT_FILENO, data, datalen);
|
if (write(STDOUT_FILENO, data, datalen) != datalen) {
|
||||||
else
|
warn("write_stdout != datalen");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
write_tun(this.tun_fd, data, datalen);
|
write_tun(this.tun_fd, data, datalen);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue