Documentation
¶
Overview ¶
Package loopbackhost is the one rule for a Host header that names the loopback interface (cockpit#req:host-header-check). Cockpit's guard and the dashboard's own routes on the same listener both ask it, so that a page which rebinds DNS to the loopback address is refused by one rule and not by two that could drift apart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Named ¶
Named reports whether a host (a Host header's host part, or the host of a listen address) names the loopback interface: exactly the name localhost (in any case, with no trailing dot), any IPv4 address of 127.0.0.0/8, and the IPv6 address ::1 in any spelling. The one rule serves the Host check and the daemon's own --listen check, so a daemon cannot listen on a loopback form that its own health check then refuses. Anything else, including a trailing dot name, is refused.
Types ¶
This section is empty.