package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Functions

CalcAdvertiseRoutes calculates the requested routes to be advertised by a node.
CheckIPForwarding reports whether IP forwarding is enabled correctly for subnet routing and exit node functionality on any interface.
CheckReversePathFiltering reports whether reverse path filtering is either disabled or set to 'loose' mode for exit node functionality on any interface.
DefaultInterfacePortable looks up the current default interface using a portable lookup method that works on most systems with a BSD style socket interface.
NewAltReadWriteCloserConn returns a net.Conn that wraps rwc (for Read, Write, and Close) and c (for all other methods).
NewDrainBufConn returns a net.Conn conditionally wrapping c, prefixing any bytes that are in initialReadBuf, which may be nil.
NewOneConnListener returns a net.Listener that returns c on its first Accept and EOF thereafter.