summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 15:09:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 15:09:38 +0000
commitdd9112f8cb593a166b683e75aceff38cb386f9ee (patch)
tree8cce0ef2532936861f5b80925f14d20903cf9e38
parent5405f7927e559304d2a7b653dd828668fd67f085 (diff)
Fix bindsocket to work in ipv6 mode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4671 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
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;;