mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-22 15:04:47 +00:00
Minor fix due to a copy paste issue.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user