Documentation
¶
Overview ¶
Package netinfo resolves the server's own public IP, used for unattended first-boot host configuration and the post-factory-reset redirect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicIP ¶
func PublicIP() string
PublicIP best-effort resolves the server's public IP so a fresh install can obtain an IP certificate without the operator pre-setting a host. It asks a couple of external echo services, then falls back to the address of the primary outbound interface. Returns "" if nothing usable is found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.