bindaddr

package
v0.0.0-...-b43479a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package bindaddr provides Phi-compatible safe LAN binding discovery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	IP   net.IP
	Kind Kind
}

func Detect

func Detect() []Addr

Detect returns loopback plus every RFC 1918 and Tailscale IPv4 address. It deliberately matches Phi's default "lan" binding policy.

type Kind

type Kind int
const (
	Loopback Kind = iota
	LAN
	Tailnet
)

func (Kind) String

func (k Kind) String() string

Jump to

Keyboard shortcuts

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