From a54cfebb0434574f91acdcee07b89ea9f682d272 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 2 Aug 2006 10:26:21 +0000 Subject: InspSocket no longer resolves hosts. InspSocket::DoResolve() and the stuff that calls it is gone, if you pass InspSocket an invalid ip, it will bail during its connect. You must now use Resolver classes to resolve hostnames into IP addresses, if you wish to do this. Currently, only one non-extra module does this, see class ServernameResolver within m_spanningtree git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4634 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dns.cpp') diff --git a/src/dns.cpp b/src/dns.cpp index e0cb3ccaa..753df7cf8 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -578,10 +578,12 @@ Resolver::Resolver(const std::string &source, bool forward) : input(source), fwd { if (forward) { + log(DEBUG,"Resolver: Forward lookup on %s",source.c_str()); this->myid = Res->dns_getip4(source.c_str()); } else { + log(DEBUG,"Resolver: Reverse lookup on %s",source.c_str()); insp_inaddr binip; if (insp_aton(source.c_str(), &binip) > 0) { -- cgit v1.2.3