mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 13:50:43 +02:00
- bugfix for recent socket change on windows
This commit is contained in:
@@ -1979,7 +1979,14 @@ Socket *ServerSocket::accept() {
|
|||||||
if(isIPAddressBlocked(client_host) == true) {
|
if(isIPAddressBlocked(client_host) == true) {
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] BLOCKING connection, newSock = %d client_host [%s]\n",__FILE__,__FUNCTION__,__LINE__,newSock,client_host);
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] BLOCKING connection, newSock = %d client_host [%s]\n",__FILE__,__FUNCTION__,__LINE__,newSock,client_host);
|
||||||
|
|
||||||
close(newSock);
|
#ifndef WIN32
|
||||||
|
::close(newSock);
|
||||||
|
newSock = INVALID_SOCKET;
|
||||||
|
#else
|
||||||
|
::closesocket(newSock);
|
||||||
|
newSock = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user