mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-31 08:37:14 +01:00
you ahelp for vpn now
because some people apparently need em
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user