diff options
author | /dev/humancontroller <devhc@example.com> | 2017-02-07 11:03:40 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:18 +0100 |
commit | 488b8162060e68a01d2521398f6587337dc75e04 (patch) | |
tree | 1412c1479a50cb8992b587927d492a87a0a68a3b /src/server | |
parent | 7f4c1d68907d33b9e34ae22079e72b0a21f3fb1e (diff) |
pwn stock-ish clients with cl_allowDownload 1 and alike
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/sv_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/sv_init.c b/src/server/sv_init.c index b661284a..c14b4f59 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -149,6 +149,11 @@ void SV_SetConfigstring (int index, const char *val) { Info_SetValueForKey_Big( info, "sv_pakNames", Cvar_VariableString( "sv_alternatePakNames" ) ); Info_SetValueForKey_Big( info, "sv_referencedPaks", Cvar_VariableString( "sv_referencedAlternatePaks" ) ); Info_SetValueForKey_Big( info, "sv_referencedPakNames", Cvar_VariableString( "sv_referencedAlternatePakNames" ) ); + Info_SetValueForKey_Big( info, "cl_allowDownload", "1, you should set it yourself" ); + if ( !( sv_allowDownload->integer & DLF_NO_REDIRECT ) ) { + Info_SetValueForKey_Big( info, "sv_wwwBaseURL", Cvar_VariableString( "sv_dlUrl" ) ); + Info_SetValueForKey_Big( info, "sv_wwwDownload", "1, you should set it yourself" ); + } } } |