feat: split TeamSpeak address and port inputs

This commit is contained in:
illusia committed 2026-09-01 22:12:37 +08:00
1 parent bf1158aff2
commit 3ec9ab497a
7 files changed
+144 -42

No files matched your search

+8
View File
@@ -30,6 +30,14 @@ describe("legacy config migration", () => {
});
});
it("accepts the address#port form during migration", () => {
assert.deepEqual(migrateConfig({ tsHost: "voice.example.com#9988" }), {
tsHost: "voice.example.com",
tsPort: 9988,
tsServerPassword: "",
});
});
it("falls back safely for malformed legacy targets", () => {
assert.deepEqual(migrateConfig({ tsHost: "bad host", tsPort: 0 }), {
tsHost: "127.0.0.1",