From dd9112f8cb593a166b683e75aceff38cb386f9ee Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 15:09:38 +0000 Subject: Fix bindsocket to work in ipv6 mode git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4671 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.cpp b/src/socket.cpp index d1eca25fc..d826bfb8c 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -39,7 +39,7 @@ bool BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server, int port if (*addr == '*') *addr = 0; - if ((*addr) && (inet_aton(addr,&addy) < 1)) + if ((*addr) && (insp_aton(addr,&addy) < 1)) { log(DEBUG,"Invalid IP '%s' given to BindSocket()", addr); return false;; -- cgit v1.2.3