mirror of
https://github.com/anope/anope.git
synced 2026-06-26 09:36:38 +02:00
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
This commit is contained in:
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user