From bbb04ecde25975beb81b7ab1010e21b39b8ddb9f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 21:33:44 +0000 Subject: More stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4691 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dns.cpp b/src/dns.cpp index 15d0c5a58..6013a60eb 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -257,9 +257,10 @@ DNS::DNS() if (insp_aton(Config->DNSServer,&addr) > 0) { memcpy(&myserver,&addr,sizeof(insp_inaddr)); - if (strstr(Config->DNSServer,"::ffff:") == Config->DNSServer) + if (strstr(Config->DNSServer,"::ffff:") == (char*)&Config->DNSServer) { /* These dont come back looking like they did when they went in. Reformat them */ + log(DEBUG,"Munging dns server name"); strcpy(Config->DNSServer,insp_ntoa(myserver)); } log(DEBUG,"Added nameserver '%s'",Config->DNSServer); -- cgit v1.2.3