Documentation
¶
Overview ¶
Package hostlabel makes the first label of a space's web hostnames, <user>--<name>--<port>, fit the 63 characters DNS allows a label: a longer label is never resolved, so the space could not be reached.
A label that fits is the names as they are, lowercased. One that does not keeps as much of the space's, alt name's or pool's name as fits, then a hyphen and a hash of the whole name, which the proxy matches the name by.
Index ¶
Constants ¶
const MaxLen = 63
MaxLen is the most characters DNS allows in one label.
Variables ¶
This section is empty.
Functions ¶
func CheckTunnel ¶
CheckTunnel refuses a web tunnel whose host label, <user>--<name>, would be longer than DNS allows, so no one could reach it.
func Hash ¶
Hash is the hash that ends name shortened: FNV-1a, 32 bits, of the name lowercased, in hex. The web interface and the MCP tools work it out the same way.
func Label ¶
Label is the label of the host for a user's space, alt name or pool and a port, a number or "vnc".
Types ¶
This section is empty.