diff options
| author | 2007-02-06 00:05:40 +0000 | |
|---|---|---|
| committer | 2007-02-06 00:05:40 +0000 | |
| commit | e6841afbdb5ca3979527bf40ffc1d72b796032e1 (patch) | |
| tree | ae754a0ad85ade79bd5841ad8418b5bbdd1abb3c /src/dns.cpp | |
| parent | No gaurantees on this atm (diff) | |
Change some stuff here to bind INADDR_ANY
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6509 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
