summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:05:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:05:40 +0000
commite6841afbdb5ca3979527bf40ffc1d72b796032e1 (patch)
treeae754a0ad85ade79bd5841ad8418b5bbdd1abb3c /src/dns.cpp
parentac36ca514e1be51d3ca7ce73bb8653ca2f08f0ce (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.cpp4
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);