Documentation
¶
Overview ¶
Package lan discovers private-range IPv4 addresses on the local host. Used by the admin "Detect LAN URLs" button, the install.sh Termux prompt, and `<app> config allowed-origins autodetect` to surface URLs reachable from other devices on the same network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverPrivateIPv4 ¶
func DiscoverPrivateIPv4() []string
DiscoverPrivateIPv4 walks every up, non-loopback interface and returns each IPv4 address that looks routable on a LAN. Only private-range addresses (RFC1918) are kept so a host with a public IP doesn't accidentally suggest exposing itself. Order is stable per interface enumeration; duplicates are deduped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.