Documentation
¶
Overview ¶
Package config manages proximo's persisted user configuration and the on-disk paths it uses (TLS material, the embedded stack, etc.).
Index ¶
Constants ¶
View Source
const ( // DefaultTLD is the default top-level domain used for local routing. // ".test" is reserved by RFC 6761 and never collides with mDNS (".local"). DefaultTLD = "test" // DNSPort is the loopback UDP host port the DNS server is published on. A // high port avoids any privileged bind to :53; 5353 is intentionally // avoided because macOS mDNSResponder (Bonjour) already binds it. DNSPort = 5354 )
Variables ¶
This section is empty.
Functions ¶
func NormalizeTLD ¶
NormalizeTLD validates and normalizes a user-supplied TLD: it strips a leading dot, lowercases, enforces a single DNS label, and rejects reserved values.
Types ¶
Click to show internal directories.
Click to hide internal directories.