v3.6.4: reject transparent proxies (echo == own network), Edge startup-boost policy + survivor-proof restart so proxy flags always apply, deploy script hardening - browser-side routing proven at proxy exit
This commit is contained in:
@@ -10,6 +10,7 @@ import fs from 'node:fs/promises';
|
||||
import os from 'node:os';
|
||||
import net from 'node:net';
|
||||
import path from 'node:path';
|
||||
import { execSync } from 'node:child_process';
|
||||
|
||||
const P = process.platform;
|
||||
const HOME = os.homedir();
|
||||
@@ -76,6 +77,21 @@ for (const port of [9444, 9445, 9446]) {
|
||||
else warn(`debug port ${port} busy — a browser already holds it; the kit will attach to it (relaunch:true takes over)`);
|
||||
}
|
||||
|
||||
/* 4b. Edge startup-boost survivor background processes re-spawn with stale
|
||||
* command lines and silently swallow the kit's proxy flag on relaunch.
|
||||
* The enterprise policy kills them for good. */
|
||||
if (P === 'win32') {
|
||||
try {
|
||||
execSync('reg query "HKCU\\Software\\Policies\\Microsoft\\Edge" /v StartupBoostEnabled', { stdio: 'pipe' });
|
||||
ok('Edge startup-boost already governed by policy');
|
||||
} catch {
|
||||
try {
|
||||
execSync('reg add "HKCU\\Software\\Policies\\Microsoft\\Edge" /v StartupBoostEnabled /t REG_DWORD /d 0 /f', { stdio: 'pipe' });
|
||||
ok('disabled Edge startup boost (policy) — survivor processes can no longer drop proxy flags');
|
||||
} catch { warn('could not write Edge StartupBoostEnabled policy — restarts may race a background Edge'); }
|
||||
}
|
||||
}
|
||||
|
||||
/* 5. Direct egress — proves there is an internet path WITHOUT any system/v2ray
|
||||
* proxy (node fetch never reads HTTP_PROXY). Geo-restricted hosts (Iran)
|
||||
* often have no open HTTP echo without VPN but can reach proxies directly
|
||||
|
||||
Reference in New Issue
Block a user