oc_chat
Loading...
Searching...
No Matches
egress_guard.py File Reference

Go to the source code of this file.

Classes

class  oc_chat.core.egress_guard.EgressDenied

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.egress_guard

Functions

bool oc_chat.core.egress_guard.is_blocked_ip ("str | ipaddress.IPv4Address | ipaddress.IPv6Address" ip)
list[str] oc_chat.core.egress_guard._resolved_ips (str host, int port)
str oc_chat.core.egress_guard.validate_url_egress (str url, *, str source_label="fetch_url")
bool oc_chat.core.egress_guard.is_forbidden_provider_host (str host_or_url)

Variables

int oc_chat.core.egress_guard.MAX_REDIRECTS = 5
 oc_chat.core.egress_guard._ALLOWED_SCHEMES = frozenset({"https"})