summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:33:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:33:44 +0000
commitbbb04ecde25975beb81b7ab1010e21b39b8ddb9f (patch)
treeed175ce5fa405141ba6e292b63d890ce2d29c358 /src/dns.cpp
parente5d7282652e3e0e36b0a1c32606fc645025c2e50 (diff)
More stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp3
1 files changed, 2 insertions, 1 deletions
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);