diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 19:41:44 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 19:41:44 +0000 |
commit | a1c49c827fef2a451bd41606efa3b972ee7338f0 (patch) | |
tree | d58a5453f88165b54aabc3d37ec9da295a236d2b /src/sockets.cpp | |
parent | 1f738f0ad4bda5dc824929d55819c7e10dd8a234 (diff) |
Fixed a problem with binding to certian IPs
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2878 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index 58370b4f8..b5d058fb2 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -52,7 +52,7 @@ Socket::Socket(const std::string &nTargetHost, int nPort, const std::string &nBi Bound = bind(Sock, reinterpret_cast<sockaddr *>(&bindaddr), sizeof(bindaddr)); } - if (!Bound) + if (Bound < 0) { if (IPv6) { |