We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee55d2 commit 403fbb4Copy full SHA for 403fbb4
MTA10_Server/mods/deathmatch/logic/CGame.cpp
@@ -605,8 +605,8 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
605
// Check if IP is one of the most common private IP addresses
606
in_addr serverIp;
607
serverIp.s_addr = inet_addr( strServerIP );
608
- uchar a = serverIp.S_un.S_un_b.s_b1;
609
- uchar b = serverIp.S_un.S_un_b.s_b2;
+ uchar a = ( (uchar*)&serverIp.s_addr )[0];
+ uchar b = ( (uchar*)&serverIp.s_addr )[1];
610
if ( a == 10 || a == 127 || ( a == 169 && b == 254 ) || ( a == 192 && b == 168 ) )
611
{
612
CLogger::ErrorPrintf ( "Can not specify private IP '%s' with ase enabled! Use: <serverip>auto</serverip>\n", *strServerIP );
0 commit comments