From e5d7282652e3e0e36b0a1c32606fc645025c2e50 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 21:24:08 +0000 Subject: Odd stuff with ::ffff ipv6 addresses git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4690 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3