netinfo

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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