mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
add non-global IPs as forbidden
This commit is contained in:
@@ -54,6 +54,7 @@ def is_forbidden_ip(ip: ipaddress.IPv4Address | ipaddress.IPv6Address) -> bool:
|
||||
or ip.is_reserved
|
||||
or ip.is_multicast
|
||||
or ip.is_unspecified
|
||||
or not ip.is_global
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user