From 5a53ae3b0ad652ebfc7757c44e61468113eb0c25 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 21:12:31 +0000 Subject: Change to use inaddr6_any git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4686 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3