Skip to content

Commit 98a5495

Browse files
author
gfs
committed
Prevents binding to 0.0.0.0 on Windows
1 parent 38785f9 commit 98a5495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ElectronNET.API/WebHostBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static IWebHostBuilder UseElectron(this IWebHostBuilder builder, string[]
3131
if(HybridSupport.IsElectronActive)
3232
{
3333
builder.UseContentRoot(AppDomain.CurrentDomain.BaseDirectory)
34-
.UseUrls("http://localhost:" + BridgeSettings.WebPort);
34+
.UseUrls("http://127.0.0.1:" + BridgeSettings.WebPort);
3535
}
3636

3737
return builder;

0 commit comments

Comments
 (0)