2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

engine: net_ws: fix misleading error when comparing IPv6 addresses

This commit is contained in:
Alibek Omarov 2024-11-15 16:41:42 +03:00
parent ea88bb88b2
commit 77fb2d0eb2

View File

@ -863,7 +863,8 @@ qboolean NET_CompareAdr( const netadr_t a, const netadr_t b )
if( a.type6 == NA_IP6 )
{
if( a.port == b.port && !NET_NetadrIP6Compare( &a, &b ))
return true;
return true;
return false;
}
Con_DPrintf( S_ERROR "%s: bad address type\n", __func__ );