mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[raknet] Match RakPeer::AddToBanList(...)
This commit is contained in:
parent
f014eb9310
commit
301b7dbf30
@ -1494,7 +1494,7 @@ void RakPeer::AddToBanList( const char *IP, RakNetTime milliseconds )
|
||||
unsigned index;
|
||||
RakNetTime time = RakNet::GetTime();
|
||||
|
||||
if ( IP == 0 || IP[ 0 ] == 0 || strlen( IP ) > 15 )
|
||||
if ( strcmp( IP, "127.0.0.1" ) == 0 || IP == 0 || IP[ 0 ] == 0 || strlen( IP ) > 15 )
|
||||
return ;
|
||||
|
||||
// If this guy is already in the ban list, do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user