Fix dev startup by freeing UDP DNS port 5533.

local-test-dns-server binds UDP; freePort previously only cleared TCP listeners.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-17 09:58:35 +08:00
parent 54de1dd8e3
commit 5ec3011bb7
+5
View File
@@ -52,6 +52,11 @@ function freePort(port) {
} catch {
// port already free
}
try {
execSync(`lsof -ti UDP:${port} | xargs kill -9`, { stdio: 'ignore' });
} catch {
// port already free
}
}
function spawnChild(command, args, label, cwd = root, extraEnv = {}) {