summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:04:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:04:21 +0000
commit00da6c94541da45181bc93bf909322db9b5b6286 (patch)
tree5a6b4d9195eb208d43aff8d6ca203614a0dcee47 /src/dns.cpp
parent2e411dd9a554e70fb0ec6063dfcfafefbd568522 (diff)
Debug output on invalid nameserver address in constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4684 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 285d54693..5d855ee64 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -255,7 +255,13 @@ DNS::DNS()
/* Convert the nameserver address into an insp_inaddr */
if (insp_aton(Config->DNSServer,&addr) > 0)
+ {
memcpy(&myserver,&addr,sizeof(insp_inaddr));
+ }
+ else
+ {
+ log(DEBUG,"GACK! insp_aton says the nameserver '%s' is invalid!",Config->DNSServer);
+ }
/* Initialize mastersocket */
MasterSocket = socket(PF_PROTOCOL, SOCK_DGRAM, 0);