mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Fixes issues with the API whitelist (#6865)
* Fixes issues with the API whitelist * Update code/modules/world_api/api_command.dm Co-Authored-By: Erki <skull132@users.noreply.github.com>
This commit is contained in:
@@ -834,7 +834,6 @@ var/list/gamemode_cache = list()
|
|||||||
if("api_rate_limit_whitelist")
|
if("api_rate_limit_whitelist")
|
||||||
config.api_rate_limit_whitelist = text2list(value, ";")
|
config.api_rate_limit_whitelist = text2list(value, ";")
|
||||||
|
|
||||||
|
|
||||||
if("mc_ticklimit_init")
|
if("mc_ticklimit_init")
|
||||||
config.mc_init_tick_limit = text2num(value) || TICK_LIMIT_MC_INIT_DEFAULT
|
config.mc_init_tick_limit = text2num(value) || TICK_LIMIT_MC_INIT_DEFAULT
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
log_debug("API: Throttling bypassed - Command [name] set to no_throttle")
|
log_debug("API: Throttling bypassed - Command [name] set to no_throttle")
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
if (config.api_rate_limit_whitelist[addr] == null)
|
if (config.api_rate_limit_whitelist[addr])
|
||||||
log_debug("API: Throttling bypassed - IP [addr] is whitelisted.")
|
log_debug("API: Throttling bypassed - IP [addr] is whitelisted.")
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user