lan

package
v0.14.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL