Gateway: optional canvas host

This commit is contained in:
Peter Steinberger
2025-12-18 11:35:21 +01:00
parent cfb36525ab
commit cd729e83b6
6 changed files with 383 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export type GatewayBonjourAdvertiseOpts = {
gatewayPort: number;
sshPort?: number;
bridgePort?: number;
canvasPort?: number;
tailnetDns?: string;
};
@@ -108,6 +109,9 @@ export async function startGatewayBonjourAdvertiser(
if (typeof opts.bridgePort === "number" && opts.bridgePort > 0) {
txtBase.bridgePort = String(opts.bridgePort);
}
if (typeof opts.canvasPort === "number" && opts.canvasPort > 0) {
txtBase.canvasPort = String(opts.canvasPort);
}
if (typeof opts.tailnetDns === "string" && opts.tailnetDns.trim()) {
txtBase.tailnetDns = opts.tailnetDns.trim();
}