ip whitelists

This commit is contained in:
Seris02
2023-06-16 16:47:05 +08:00
parent d4c5742d6c
commit cf690461db
3 changed files with 26 additions and 0 deletions

View File

@@ -9,6 +9,10 @@
if(M == src) continue
if( M.key && (M.key != key) )
var/matches
//CHOMPEDIT - IP exemptions for those who are known to live together
if (config.ip_whitelist[key] && config.ip_whitelist[key] == config.ip_whitelist[M.key])
continue
//CHOMPEDIT end
if( (M.lastKnownIP == client.address) )
matches += "IP ([client.address])"
if( (client.connection != "web") && (M.computer_id == client.computer_id) )