diff options
Diffstat (limited to 'src/dns.cpp')
-rw-r--r-- | src/dns.cpp | 6 |
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); |