From 00da6c94541da45181bc93bf909322db9b5b6286 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 21:04:21 +0000 Subject: Debug output on invalid nameserver address in constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4684 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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); -- cgit v1.2.3