MCPcopy Create free account
hub / github.com/celzero/firestack / ControlledRouter

Function ControlledRouter

intra/tun2socks.go:186–188  ·  view source on GitHub ↗

ControlledRouter creates a [backend.Router] over a [backend.Internet] proxy (like [backend.Exit]), but one that uses custom Controller c. id and addrport are used only for diagnostics and logging, and could be left empty. Typical usage is to use Router.Reaches() to check if a host:port is reachable

(c Controller, id, addrport string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

NewExitProxyWithIDFunction · 0.92
RouterMethod · 0.65

Tested by

no test coverage detected