mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 23:25:45 +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;
|
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);
|
COM_HexConvert(filename + 4, 32, md5);
|
||||||
resource = cl->resourcesneeded.pNext;
|
resource = cl->resourcesneeded.pNext;
|
||||||
bFound = FALSE;
|
bFound = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user