package
5.0.0+incompatible
Repository: https://github.com/qwenode/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.
GetList 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.
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.
RegisterInterfaceGetter sets the function that's used to query the system network interfaces.
Tailscale returns the current machine's Tailscale interface, if any.
UseAllInterfaces is an InterfaceFilter that includes all interfaces.
UseAllIPs is an IPFilter that includes all all IPs.
UseInterestingInterfaces is an InterfaceFilter that reports whether i is an interesting interface.
UseInterestingIPs is an IPFilter that reports whether ip is an interesting IP address.

# Variables

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

# Structs

DefaultRouteDetails are the details about a default route returned by DefaultRoute.
Interface is a wrapper around Go's net.Interface with some extra methods.
State is intended to store the state of the machine's network interfaces, routing table, and other network configuration.

# Type aliases

An InterfaceFilter indicates whether EqualFiltered should use i when deciding whether two States are equal.
An IPFilter indicates whether EqualFiltered should use ip when deciding whether two States are equal.
List is a list of interfaces on the machine.