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

Function Connect

intra/tun2socks.go:160–165  ·  view source on GitHub ↗

Connect creates firestack-administered tunnel. `fd` is the TUN device. The tunnel acquires an additional reference to it, which is released by Disconnect(), so the caller must close `fd` and Disconnect() to close the TUN device. `linkmtu` is the MTU of the underlying link (actual network). If <= 0,

(fd, linkmtu, tunmtu int, ifaddrs, fakedns string, dtr DefaultDNS, bdg Bridge)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Connect2Function · 0.85

Calls 2

NewTunnelFunction · 0.85
NewTunnel2Function · 0.85

Tested by

no test coverage detected