security: block multicast and unspecified IPs in _ip_is_blocked

(cherry picked from commit cd96fbea26)
This commit is contained in:
Dextheking1 authored and safishamsi committed 2026-10-23 16:11:09 +01:00
1 parent 5c3c47ebea
commit 02f62e769d
1 file changed
+2
+2
View File
@@ -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
)