mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-26 23:03:33 +02:00
Revert client shutdown code, it seems BADIP can arrive even though everything works
This commit is contained in:
parent
cb0fa56232
commit
3740894350
2 changed files with 0 additions and 7 deletions
|
@ -11,7 +11,6 @@ CHANGES:
|
|||
from Francois Revol. Still work to do to get tun device working.
|
||||
- Added capability to forward DNS queries outside tunnel domain to
|
||||
a nameserver on localhost. Use -b port to enable, fixes #31.
|
||||
- iodine client now shuts down if it detects a server restart.
|
||||
- iodined now replies to NS request on its own domain, fixes issue #33.
|
||||
The destination IP address is sent as reply. Use -n to specify
|
||||
a specific IP address to return (if behind NAT etc).
|
||||
|
|
|
@ -227,12 +227,6 @@ tunnel_dns(int tun_fd, int dns_fd)
|
|||
if ((read = read_dns(dns_fd, in, sizeof(in))) <= 0)
|
||||
return -1;
|
||||
|
||||
if (read == 5 && strncmp("BADIP", in, 5) == 0) {
|
||||
errx(3, "Not recognized by server. "
|
||||
"Has it been restarted? Aborting");
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
outlen = sizeof(out);
|
||||
inlen = read;
|
||||
if (uncompress((uint8_t*)out, &outlen, (uint8_t*)in, inlen) != Z_OK) {
|
||||
|
|
Loading…
Reference in a new issue