fix: audit pass — WebRTC audit, HTTPS gate, leak compare, kill-switch guard, doc backlog
This commit is contained in:
@@ -267,7 +267,7 @@ def _is_safe_https_url(url: str) -> bool:
|
||||
"""Return True for HTTPS URLs pointing at public hosts (not RFC-1918/link-local)."""
|
||||
try:
|
||||
p = urlparse(url)
|
||||
if p.scheme not in ("http", "https"):
|
||||
if p.scheme != "https":
|
||||
return False
|
||||
host = p.hostname or ""
|
||||
if not host:
|
||||
|
||||
Reference in New Issue
Block a user