parseServedPort
parseServedPort(
serveStatusText,localPort):number|null
Defined in: src/config.ts:85
Pure parser: given the text of tailscale serve status and the HUD’s local
listen port, return the public-facing HTTPS port that Tailscale fronts that
local port on. Returns null when no matching mapping is found.
Example input lines: https://host.ts.net:5191 (tailnet only) |— / proxy http://127.0.0.1:5190
The HUD’s default mapping has no port (=> 443): https://host.ts.net (tailnet only) |— / proxy http://127.0.0.1:7330
Parameters
Section titled “Parameters”serveStatusText
Section titled “serveStatusText”string
localPort
Section titled “localPort”number
Returns
Section titled “Returns”number | null