mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-13 06:21:08 +00:00
add server-side sv_downloadurl_ipv6 support #1559
This commit is contained in:
parent
1ffd84b1ee
commit
dcf3eb8f89
@ -562,12 +562,14 @@ void SV_SendResources( sv_client_t *cl, sizebuf_t *msg )
|
||||
MSG_WriteLong( msg, svs.spawncount );
|
||||
MSG_WriteLong( msg, 0 );
|
||||
|
||||
if ( COM_CheckString( sv_downloadurl_ipv6.string ) && Q_strlen( sv_downloadurl_ipv6.string ) < 256 )
|
||||
if ( cl->netchan.remote_address.type6 == NA_IP6 && // If remote is IPv6 - check for sv_downloadurl_ipv6 first #1559
|
||||
COM_CheckString( sv_downloadurl_ipv6.string ) && Q_strlen( sv_downloadurl_ipv6.string ) < 256 )
|
||||
{
|
||||
MSG_BeginServerCmd( msg, svc_resourcelocation );
|
||||
MSG_WriteString( msg, sv_downloadurl_ipv6.string );
|
||||
}
|
||||
else if( COM_CheckString( sv_downloadurl.string ) && Q_strlen( sv_downloadurl.string ) < 256 )
|
||||
|
||||
else if ( COM_CheckString( sv_downloadurl.string ) && Q_strlen( sv_downloadurl.string ) < 256 )
|
||||
{
|
||||
MSG_BeginServerCmd( msg, svc_resourcelocation );
|
||||
MSG_WriteString( msg, sv_downloadurl.string );
|
||||
|
Loading…
x
Reference in New Issue
Block a user