From ae942ac5421ee314785bad176a8b5460a1dae495 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 6 Dec 2008 12:25:02 +0000 Subject: [PATCH] Revert client shutdown code, it seems BADIP can arrive even though everything works --- CHANGELOG | 1 - src/iodine.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 28216a2..c4fd765 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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). diff --git a/src/iodine.c b/src/iodine.c index 3f55a72..a9ca24c 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -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) {