Skip to content

Commit

Permalink
ipintel fixes for localhost/private ip ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
craftxbox committed Sep 17, 2024
1 parent 2e4418b commit b732096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/admin/ipintel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit b732096

Please sign in to comment.