MCPcopy Index your code
hub / github.com/celzero/firestack / NewTCPHandler

Function NewTCPHandler

intra/tcp.go:107–122  ·  view source on GitHub ↗

NewTCPHandler returns a TCP forwarder with Intra-style behavior. Connections to `fakedns` are redirected to DOH. All other traffic is forwarded using `dialer`. `listener` is provided with a summary of each socket when it is closed.

(pctx context.Context, resolver dnsx.Resolver, prox ipn.ProxyProvider, listener FlowListener)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewTunnel2Function · 0.85

Calls 6

IsNilFunction · 0.92
WFunction · 0.92
GxFunction · 0.92
IFunction · 0.92
newBaseHandlerFunction · 0.85
newTCPNatFunction · 0.85

Tested by

no test coverage detected