From b803e42a734647fc191813f4e63b1d058e5cab7e Mon Sep 17 00:00:00 2001 From: Aaron Gilliland Date: Sat, 14 Nov 2020 19:15:54 -0600 Subject: [PATCH] Minor fix due to a copy paste issue. --- ElectronNET.Host/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index 9f74d57..d39b2d8 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -63,11 +63,12 @@ app.on('ready', () => { if (isSplashScreenEnabled()) { startSplashScreen(); } + // Added default port as configurable for port restricted environments. let defaultElectronPort = 8000; if (manifestJsonFile.electronPort) { - defaultElectronPort = (manifestJsonFile.aspCoreBackendPort) + defaultElectronPort = (manifestJsonFile.electronPort) } - // hostname needs to belocalhost, otherwise Windows Firewall will be triggered. + // hostname needs to be localhost, otherwise Windows Firewall will be triggered. portscanner.findAPortNotInUse(defaultElectronPort, 65535, 'localhost', function (error, port) { console.log('Electron Socket IO Port: ' + port); startSocketApiBridge(port);