Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CGNATRange returns the Carrier Grade NAT address range that // is the superset range that Tailscale assigns out of. // See https://tailscale.com/s/cgnat // Note that Tailscale does not assign out of the ChromeOSVMRange. CGNATRange = mustPrefix("100.64.0.0/10") // ChromeOSVMRange returns the subset of the CGNAT IPv4 range used by // ChromeOS to interconnect the host OS to containers and VMs. We // avoid allocating Tailscale IPs from it, to avoid conflicts. ChromeOSVMRange = mustPrefix("100.115.92.0/23") // TailscaleULARange returns the IPv6 Unique Local Address range that // is the superset range that Tailscale assigns out of. TailscaleULARange = mustPrefix("fd7a:115c:a1e0::/48") )
Functions ¶
func Interface ¶
Adapted from tailscale.com/net/interfaces interfaces.go
Interface returns the current machine's Tailscale interface, if any. If none is found, all zero values are returned. A non-nil error is only returned on a problem listing the system interfaces.
func IsTailscaleIP ¶
Adapted from tailscale.com/net/tsaddr tsaddr.go
IsTailscaleIP reports whether ip is an IP address in a range that Tailscale assigns from.
Types ¶
Click to show internal directories.
Click to hide internal directories.