From e49cb4ecfca4cf9bf5c2df2f97278613b82e5fd8 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 11:22:30 +0000 Subject: Fixed unresolved reference to Config::DNSServer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2398 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message.cpp b/src/message.cpp index 45138e7b9..49f19a4b0 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -178,9 +178,9 @@ void NonBlocking(int s) int CleanAndResolve (char *resolvedHost, const char *unresolvedHost) { - DNS d(DNSServer); + DNS d(Config->DNSServer); int fd = d.ReverseLookup(unresolvedHost); - if (fd < 1) + if (fd < 0) return 0; time_t T = time(NULL)+1; while ((!d.HasResult()) && (time(NULL)