Documentation
¶
Overview ¶
Package network provides LAN interface discovery and Tailscale detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasTailscale ¶
func HasTailscale() bool
HasTailscale returns true if a tailscale0 interface exists and is up.
Types ¶
type LAN ¶
LAN represents a discovered LAN network interface.
func LocalAddresses ¶
func LocalAddresses() []LAN
LocalAddresses returns non-loopback IPv4 addresses, RFC1918 sorted first. Each entry carries the interface name and a Tailscale flag.
Click to show internal directories.
Click to hide internal directories.