MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _upstream_is_local

Function _upstream_is_local

uncommon_route/cli.py:656–658  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

654 upstream = connection.upstream
655
656 def _upstream_is_local(url: str) -> bool:
657 host = (urlparse(url).hostname or "").lower()
658 return host in {"localhost", "127.0.0.1", "0.0.0.0", "::1"}
659
660 def _local_proxy_no_proxy_warning() -> str | None:
661 local_targets = [

Callers 2

_cmd_doctorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected