mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 07:05:43 +03:00
SV_ProcessFile: Ignore customization file uploads if upload is disabled
This commit is contained in:
parent
b29740c19e
commit
fe184a82e0
@ -3783,6 +3783,12 @@ void SV_ProcessFile(client_t *cl, char *filename)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sv_allow_upload.value)
|
||||
{
|
||||
Con_NetPrintf("Ignoring incoming customization file upload of %s from %s\n", filename, NET_AdrToString(cl->netchan.remote_address));
|
||||
return;
|
||||
}
|
||||
|
||||
COM_HexConvert(filename + 4, 32, md5);
|
||||
resource = cl->resourcesneeded.pNext;
|
||||
bFound = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user