mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-08 18:19:18 +02:00
Revert client shutdown code, it seems BADIP can arrive even though everything works
This commit is contained in:
parent
cb0fa56232
commit
3740894350
|
@ -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