feautre
This commit is contained in:
@@ -578,9 +578,10 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
//If we aren't an admin, and the flag is set
|
||||
if(CONFIG_GET(flag/panic_bunker) && !holder && !GLOB.deadmins[ckey] && !(ckey in GLOB.bunker_passthrough))
|
||||
var/living_recs = CONFIG_GET(number/panic_bunker_living)
|
||||
var/vpn_living_recs = CONFIG_GET(number/panic_bunker_living_vpn)
|
||||
//Relies on pref existing, but this proc is only called after that occurs, so we're fine.
|
||||
var/minutes = get_exp_living(pure_numeric = TRUE)
|
||||
if(minutes <= living_recs) // && !CONFIG_GET(flag/panic_bunker_interview)
|
||||
if((minutes <= living_recs) || (IsVPN() && (minutes < vpn_living_recs)))
|
||||
var/reject_message = "Failed Login: [key] - Account attempting to connect during panic bunker, but they do not have the required living time [minutes]/[living_recs]"
|
||||
log_access(reject_message)
|
||||
message_admins("<span class='adminnotice'>[reject_message]</span>")
|
||||
|
||||
3
code/modules/client/client_vpn_detect.dm
Normal file
3
code/modules/client/client_vpn_detect.dm
Normal file
@@ -0,0 +1,3 @@
|
||||
/client/proc/IsVPN()
|
||||
var/datum/ipintel/res = get_ip_intel(address)
|
||||
return res.intel >= CONFIG_GET(number/ipintel_rating_bad)
|
||||
Reference in New Issue
Block a user