[raknet] Match RakPeer::AddToBanList(...)

This commit is contained in:
RD42 2024-08-18 23:35:27 +08:00
parent f014eb9310
commit 301b7dbf30

View File

@ -1494,7 +1494,7 @@ void RakPeer::AddToBanList( const char *IP, RakNetTime milliseconds )
unsigned index; unsigned index;
RakNetTime time = RakNet::GetTime(); 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 ; return ;
// If this guy is already in the ban list, do nothing // If this guy is already in the ban list, do nothing