From b7320966ef15da3c168c53e7005c9e3bc61b5f25 Mon Sep 17 00:00:00 2001 From: craftxbox Date: Tue, 17 Sep 2024 19:18:38 -0230 Subject: [PATCH] ipintel fixes for localhost/private ip ranges --- code/modules/admin/ipintel.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/ipintel.dm b/code/modules/admin/ipintel.dm index 508db7f4488a0..e3d970c7f0906 100644 --- a/code/modules/admin/ipintel.dm +++ b/code/modules/admin/ipintel.dm @@ -83,6 +83,8 @@ return if (!SSipintel.enabled) return + if (!regex(ip, "(^127\\.)|(^10\\.)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^192\\.168\\.)")) + return .(ip, -1) var/list/http[] = world.Export("http://[CONFIG_GET(string/ipintel_domain)]/check.php?ip=[ip]&contact=[CONFIG_GET(string/ipintel_email)]&format=json&flags=f")