mirror of
https://github.com/safishamsi/graphify.git
synced 2026-10-25 08:11:54 +00:00
security: block multicast and unspecified IPs in _ip_is_blocked
(cherry picked from commit cd96fbea26)
This commit is contained in:
1 parent
5c3c47ebea
commit
02f62e769d
1 file changed
+2
@@ -96,6 +96,8 @@ def _ip_is_blocked(ip: ipaddress.IPv4Address | ipaddress.IPv6Address) -> bool:
|
||||
or ip.is_reserved
|
||||
or ip.is_loopback
|
||||
or ip.is_link_local
|
||||
or ip.is_multicast
|
||||
or ip.is_unspecified
|
||||
or ip in _CGN_NETWORK
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user