MCPcopy Create free account
hub / github.com/Jigsaw-Code/Intra / ConnectSession

Function ConnectSession

Android/app/src/go/backend/tunnel.go:56–74  ·  view source on GitHub ↗

ConnectSession reads packets from a TUN device and applies the Intra routing rules. Currently, this only consists of redirecting DNS packets to a specified server; all other data flows directly to its destination. fd is the TUN device. The intra [Session] acquires an additional reference to it, whi

(
	fd int, fakedns string, dohdns *DoHServer, protector protect.Protector, listener intra.Listener,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

MakeTunDeviceFromFDFunction · 0.92
NewTunnelFunction · 0.92
copyUntilEOFFunction · 0.85

Tested by

no test coverage detected