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

# Functions

DefaultRoute returns details of the network interface that owns the default route, not including any tailscale interfaces.
DefaultRouteInterface is like DefaultRoute but only returns the interface name.
ForeachInterface is a wrapper for GetList, then List.ForeachInterface.
ForeachInterfaceAddress is a wrapper for GetList, then List.ForeachInterfaceAddress.
GetInterfaceList returns the list of interfaces on the machine.
GetState returns the state of all the current machine's network interfaces.
HasCGNATInterface reports whether there are any non-Tailscale interfaces that use a CGNAT IP range.
HTTPOfListener returns the HTTP address to ln.
InterfaceDebugExtras returns extra debugging information about an interface if any (an empty string will be returned if there are no additional details).
LikelyHomeRouterIP returns the likely IP of the residential router, which will always be an IPv4 private address, if found.
LocalAddresses returns the machine's IP addresses, separated by whether they're loopback addresses.
New instantiates and starts a monitoring instance.
NewStatic returns a Monitor that's a one-time snapshot of the network state but doesn't actually monitor for changes.
RegisterInterfaceGetter sets the function that's used to query the system network interfaces.

# Variables

LoginEndpointForProxyDetermination is the URL used for testing which HTTP proxy the system should use.

# Structs

ChangeDelta describes the difference between two network states.
DefaultRouteDetails are the details about a default route returned by DefaultRoute.
Interface is a wrapper around Go's net.Interface with some extra methods.
Monitor represents a monitoring instance.
State is intended to store the state of the machine's network interfaces, routing table, and other network configuration.

# Type aliases

ChangeFunc is a callback function registered with Monitor that's called when the network changed.
InterfaceList is a list of interfaces on the machine.
RuleDeleteCallback is a callback when a Linux IP policy routing rule is deleted.