you ahelp for vpn now

because some people apparently need em
This commit is contained in:
BongaTheProto
2022-08-21 21:33:31 -05:00
parent 3341812b44
commit 69d0eb78ed
7 changed files with 81 additions and 3 deletions
@@ -3,9 +3,17 @@
if(!(ip_intel != initial(ip_intel) && ip_intel >= CONFIG_GET(number/ipintel_rating_bad)))
uses_vpn = FALSE
return .
uses_vpn = TRUE
uses_vpn = TRUE //Puts the vpn flag on the player playtimes
//Kicks them automatically if 100% sure and they're not whitelisted
if(!CONFIG_GET(flag/kick_vpn) || ip_intel < 1)
return .
var/datum/config_entry/multi_keyed_flag/vpn_bypass/whitelist = CONFIG_GET_ENTRY(multi_keyed_flag/vpn_bypass)
if(ckey(ckey) in whitelist.config_entry_value)
log_admin("[key_name(src)] was allowed to join although they're using a vpn")
return .
to_chat(src, span_danger("You have been kicked from the server because your IP has been flagged as a VPN. \
Please turn it off in order to connect or contact staff in case this is an error."))
var/logg = "[key_name(src)] kicked for failing the vpn check."