Skip to content

Commit b803e42

Browse files
committed
Minor fix due to a copy paste issue.
1 parent 8af1f50 commit b803e42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ElectronNET.Host/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ app.on('ready', () => {
6363
if (isSplashScreenEnabled()) {
6464
startSplashScreen();
6565
}
66+
// Added default port as configurable for port restricted environments.
6667
let defaultElectronPort = 8000;
6768
if (manifestJsonFile.electronPort) {
68-
defaultElectronPort = (manifestJsonFile.aspCoreBackendPort)
69+
defaultElectronPort = (manifestJsonFile.electronPort)
6970
}
70-
// hostname needs to belocalhost, otherwise Windows Firewall will be triggered.
71+
// hostname needs to be localhost, otherwise Windows Firewall will be triggered.
7172
portscanner.findAPortNotInUse(defaultElectronPort, 65535, 'localhost', function (error, port) {
7273
console.log('Electron Socket IO Port: ' + port);
7374
startSocketApiBridge(port);

0 commit comments

Comments
 (0)