Skip to content

Commit 14cba04

Browse files
committed
Start with correct port
1 parent 633f4ae commit 14cba04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ElectronNET.Host/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ function startSocketApiBridge(port) {
280280

281281
// Now that socket connection is established, we can guarantee port will not be open for portscanner
282282
if (unpackedelectron) {
283-
startAspCoreBackendUnpackaged(port);
283+
startAspCoreBackendUnpackaged(addr.port);
284284
} else if (!unpackeddotnet && !dotnetpacked) {
285-
startAspCoreBackend(port);
285+
startAspCoreBackend(addr.port);
286286
}
287287
});
288288

@@ -427,6 +427,7 @@ function startAspCoreBackendUnpackaged(electronPort) {
427427
envParam,
428428
`/electronPort=${electronPort}`,
429429
`/electronPID=${process.pid}`,
430+
`/electronAuthToken=${authToken}`,
430431
...forwardedArgs.filter(a => !(envParam && a.startsWith('--environment=')))
431432
].filter(p => p);
432433
let binaryFile = manifestJsonFile.executable;

0 commit comments

Comments
 (0)