diff options
-rw-r--r-- | src/dns.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 6d624c181..15d0c5a58 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -257,6 +257,11 @@ DNS::DNS() if (insp_aton(Config->DNSServer,&addr) > 0) { memcpy(&myserver,&addr,sizeof(insp_inaddr)); + if (strstr(Config->DNSServer,"::ffff:") == Config->DNSServer) + { + /* These dont come back looking like they did when they went in. Reformat them */ + strcpy(Config->DNSServer,insp_ntoa(myserver)); + } log(DEBUG,"Added nameserver '%s'",Config->DNSServer); } else |