mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
## About The Pull Request If you set up a server without `COMMS_KEY` set it will be blank, which is a valid key ## Why It's Good For The Game CommKey validation should fail closed not open https://github.com/tgstation/tgstation/pull/88367 Co-authored-by: Letter N <24603524+LetterN@users.noreply.github.com>
This commit is contained in:
committed by
StrangeWeirdKitten
co-authored by
Letter N
parent
9d542dd01a
commit
78eb9cbcd8
@@ -26,7 +26,7 @@
|
||||
var/require_comms_key = FALSE
|
||||
|
||||
/datum/world_topic/proc/TryRun(list/input)
|
||||
key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
|
||||
key_valid = (CONFIG_GET(string/comms_key) == input["key"]) && CONFIG_GET(string/comms_key) && input["key"]
|
||||
input -= "key"
|
||||
if(require_comms_key && !key_valid)
|
||||
. = "Bad Key"
|
||||
|
||||
Reference in New Issue
Block a user