Removes firewall section for windows node start

This commit is contained in:
thatben 2025-02-14 10:13:42 +01:00
parent 09a6f1518f
commit 2114d737cb
No known key found for this signature in database
GPG Key ID: 62C543548433D43E

View File

@ -57,12 +57,6 @@ export async function runCodex(showNavigationMenu) {
]);
try {
if (platform === 'win32') {
console.log(showInfoMessage('Setting up firewall rules...'));
await runCommand(`netsh advfirewall firewall add rule name="Allow Codex (TCP-In)" protocol=TCP dir=in localport=${listenPort} action=allow`);
await runCommand(`netsh advfirewall firewall add rule name="Allow Codex (UDP-In)" protocol=UDP dir=in localport=${discPort} action=allow`);
}
let nat;
if (platform === 'win32') {
const result = await runCommand('for /f "delims=" %a in (\'curl -s --ssl-reqd ip.codex.storage\') do @echo %a');