// When the websocket is proxied over HTTPS (for example Tailscale Serve), the gateway's // internal listener still runs on 18789. In that case, expose the public port instead of // advertising the internal one back to clients.
let exposedPort = port; if (!override && requestHost && port === 18789) { if (parsedRequestHost.port && parsedRequestHost.port > 0) {
exposedPort = parsedRequestHost.port;
} elseif (scheme === "https") {
exposedPort = 443;
} elseif (scheme === "http") {
exposedPort = 80;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.