From e6841afbdb5ca3979527bf40ffc1d72b796032e1 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Feb 2007 00:05:40 +0000 Subject: Change some stuff here to bind INADDR_ANY git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6509 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dns.cpp b/src/dns.cpp index 4cf6b1968..d22c60c00 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -354,8 +354,8 @@ void DNS::Rehash() /* Have we got a socket and is it nonblocking? */ if (this->GetFd() != -1) { - /* Bind the port */ - if (!ServerInstance->BindSocket(this->GetFd(), 0, ServerInstance->Config->DNSServer, false)) + /* Bind the port - port 0 INADDR_ANY */ + if (!ServerInstance->BindSocket(this->GetFd(), 0, "", false)) { /* Failed to bind */ shutdown(this->GetFd(),2); -- cgit v1.2.3