Gateway: optional canvas host
This commit is contained in:
1 parent
cfb36525ab
commit
cd729e83b6
6 files changed
+383
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user