mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-23 04:09:49 +00:00
- Enhance passthrough function to support response inspection
- Add cursor tool configuration and update related components
This commit is contained in:
@@ -464,6 +464,11 @@ async function startServer(apiKey, sudoPassword) {
|
||||
err(msg);
|
||||
startError = msg;
|
||||
}
|
||||
// Detect wrong/missing password — clear cache and stop retry loop
|
||||
if (!IS_WIN && (msg.includes("incorrect password") || msg.includes("no password was provided"))) {
|
||||
setCachedPassword(null);
|
||||
mitmIsRestarting = true; // prevent scheduleMitmRestart from firing
|
||||
}
|
||||
});
|
||||
serverProcess.on("exit", (code) => {
|
||||
log(`Server exited (code: ${code})`);
|
||||
|
||||
Reference in New Issue
Block a user