mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 12:53:09 +00:00
Fix Sys_IsLANAddress() on *nix
Don't just convert the first char of the IP. LAN clients now get properly detected and don't need to auth against the master server.
This commit is contained in:
parent
20aaba2c65
commit
1da44eb856
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ bool Sys_IsLANAddress( const netadr_t adr ) {
|
|||
}
|
||||
|
||||
for ( i = 0; i < num_interfaces; i++ ) {
|
||||
ip = ntohl( adr.ip[0] );
|
||||
ip = ntohl( *( unsigned int *)&adr.ip );
|
||||
if( ( netint[i].ip & netint[i].mask ) == ( ip & netint[i].mask ) ) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue