diff options
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) { |