feat: complete runtime and KAAK skin updates

This commit is contained in:
illusia committed 2026-10-12 23:06:55 +08:00
1 parent c994722016
commit 7fd1ea96fe
40 files changed
+3436 -1088

No files matched your search

+16
View File
@@ -94,3 +94,19 @@ test("open-target protection runs on the lookup result", async () => {
}
assert.deepEqual(await resolveSafeOpenTarget(await resolveTeamSpeakTarget("guild", lookup())), { host: "8.8.8.8", port: 10000 });
});
test("TeamSpeak nickname results continue through SRV discovery before open-mode validation", async () => {
const target = await resolveTarget("guild", lookup("ts.twilightly.top"), async () => undefined);
const safeTarget = await resolveSafeOpenTarget(target, {
resolveSrv: async (service) => {
assert.equal(service, "_ts3._udp.ts.twilightly.top");
return [{ name: "routerstun.speedtest.twilightly.top.", port: 18967, priority: 0, weight: 5 }];
},
lookup: async (hostname) => {
assert.equal(hostname, "routerstun.speedtest.twilightly.top");
return [{ address: "183.200.23.34", family: 4 }];
},
});
assert.deepEqual(safeTarget, { host: "183.200.23.34", port: 18967 });
});