mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 05:09:20 +02:00
Revert client shutdown code, it seems BADIP can arrive even though everything works
This commit is contained in:
parent
bc6945527e
commit
ae942ac542
|
@ -11,7 +11,6 @@ CHANGES:
|
||||||
from Francois Revol. Still work to do to get tun device working.
|
from Francois Revol. Still work to do to get tun device working.
|
||||||
- Added capability to forward DNS queries outside tunnel domain to
|
- Added capability to forward DNS queries outside tunnel domain to
|
||||||
a nameserver on localhost. Use -b port to enable, fixes #31.
|
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.
|
- 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
|
The destination IP address is sent as reply. Use -n to specify
|
||||||
a specific IP address to return (if behind NAT etc).
|
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)
|
if ((read = read_dns(dns_fd, in, sizeof(in))) <= 0)
|
||||||
return -1;
|
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);
|
outlen = sizeof(out);
|
||||||
inlen = read;
|
inlen = read;
|
||||||
if (uncompress((uint8_t*)out, &outlen, (uint8_t*)in, inlen) != Z_OK) {
|
if (uncompress((uint8_t*)out, &outlen, (uint8_t*)in, inlen) != Z_OK) {
|
||||||
|
|
Loading…
Reference in New Issue