diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 11:22:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 11:22:30 +0000 |
commit | e49cb4ecfca4cf9bf5c2df2f97278613b82e5fd8 (patch) | |
tree | 5c44c01f50c45c0e49ad63409c4df203a78f1ff6 | |
parent | 84cb35a951931171b8ae29eb0fb7bcaf0e4cdc10 (diff) |
Fixed unresolved reference to Config::DNSServer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2398 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/message.cpp | 4 |
1 files 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)<T)); |