diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-05 21:00:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-05 21:00:42 +0000 |
commit | a15410696d085e1ca5eab4f71fba61a043bb2a44 (patch) | |
tree | c8ca64f3113c00e7d04c2cb000d56830f5fe47e0 /src/socket.cpp | |
parent | 9072ecbdd583b234945e2a7c6fdae7aad3a2c4d9 (diff) |
Fix ipv4 bindings for ipv4 only servers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6499 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |