diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-03 21:12:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-03 21:12:31 +0000 |
commit | 5a53ae3b0ad652ebfc7757c44e61468113eb0c25 (patch) | |
tree | fa79500cf88652a35b25f6673c3a9235445335be | |
parent | 90515befc6fa6b29e9cb10b45fc803f0b70d9f6d (diff) |
Change to use inaddr6_any
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4686 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dns.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 5ce1936ee..78025021f 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -277,6 +277,10 @@ DNS::DNS() MasterSocket = -1; } } + else + { + log(DEBUG,"I cant socket() this socket! (%s)",strerror(errno)); + } /* Have we got a socket and is it nonblocking? */ if (MasterSocket != -1) { @@ -285,7 +289,7 @@ DNS::DNS() memset(&addr,0,sizeof(addr)); addr.sin6_family = AF_FAMILY; addr.sin6_port = 0; - memset(&addr.sin6_addr,255,sizeof(in6_addr)); + addr.sin6_addr = in6addr_any; #else insp_sockaddr addr; memset(&addr,0,sizeof(addr)); |