From 606b2a64817c39648e9eedcb18fea4171ffd5527 Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Thu, 24 Mar 2022 19:32:15 +0100 Subject: [PATCH] Update main.js --- ElectronNET.Host/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index e963e22..1bedd77 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -141,7 +141,7 @@ app.on('ready', () => { if (manifestJsonFile.electronPort) { defaultElectronPort = (manifestJsonFile.electronPort) if (defaultElectronPort == 'random') { - defaultElectronPort = Math.floor(Math.random() * 2000 + 8000); //Use random port to reduce risk of race conditions between when we find a free port here, and when the app locks on the port + defaultElectronPort = (Math.floor(Math.random() * 2000 + 8000)); //Use random port to reduce risk of race conditions between when we find a free port here, and when the app locks on the port } } // hostname needs to be localhost, otherwise Windows Firewall will be triggered.