fix(pairing): allow emulator ws setup urls

This commit is contained in:
Ayaan Zaidi
2026-04-03 13:07:17 +05:30
parent acd5734aa9
commit 84add47525
3 changed files with 35 additions and 3 deletions

View File

@@ -229,6 +229,19 @@ describe("registerQrCli", () => {
expect(output).toContain("gateway.tailscale.mode=serve");
});
it("allows android emulator cleartext override urls", async () => {
loadConfig.mockReturnValue({
gateway: {
bind: "loopback",
auth: { mode: "token", token: "tok" },
},
});
await runQr(["--setup-code-only", "--url", "ws://10.0.2.2:18789"]);
expectLoggedSetupCode("ws://10.0.2.2:18789");
});
it("accepts --token override when config has no auth", async () => {
loadConfig.mockReturnValue({
gateway: {