diff options
-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); |