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

Function NewUDPHandler

intra/udp.go:77–91  ·  view source on GitHub ↗

NewUDPHandler makes a UDP handler with Intra-style DNS redirection: All packets are routed directly to their destination. `timeout` controls the effective NAT mapping lifetime. `config` is used to bind new external UDP ports. `listener` receives a summary about each UDP binding when it expires.

(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
newMuxTableFunction · 0.85

Tested by

no test coverage detected