From a15410696d085e1ca5eab4f71fba61a043bb2a44 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 5 Feb 2007 21:00:42 +0000 Subject: Fix ipv4 bindings for ipv4 only servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6499 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/socket.cpp b/src/socket.cpp index 6d7abf46c..bf080172e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -336,12 +336,12 @@ bool InspIRCd::BindSocket(int sockfd, insp_sockaddr clientn, insp_sockaddr serve } #else /* If we aren't built with ipv6, the choice becomes simple */ - (sockaddr_in*)server->sin_family = AF_INET; + ((sockaddr_in*)server)->sin_family = AF_INET; if (*addr) { /* There is an address here. */ in_addr addy; - inet_pton(AF_INET, &addy, addr); + inet_pton(AF_INET, addr, &addy); ((sockaddr_in*)server)->sin_addr = addy; } -- cgit v1.2.3