mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: identification: do not salt port as suggested by @snmetamorph
This commit is contained in:
@@ -644,16 +644,13 @@ void ID_GetMD5ForAddress( char *key, netadr_t adr, size_t size )
|
||||
// local server case
|
||||
case NA_IP:
|
||||
memcpy( buf, adr.ip, sizeof( adr.ip ));
|
||||
memcpy( buf + sizeof( adr.ip ), &adr.port, sizeof( adr.port ));
|
||||
bufsize = sizeof( adr.ip ) + sizeof( adr.port );
|
||||
bufsize = sizeof( adr.ip );
|
||||
break;
|
||||
case NA_IP6:
|
||||
NET_NetadrToIP6Bytes( buf, &adr );
|
||||
memcpy( buf + 16, &adr.port, sizeof( adr.port ));
|
||||
bufsize = 16 + sizeof( adr.port );
|
||||
bufsize = 16;
|
||||
break;
|
||||
default:
|
||||
bufsize = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user