端口配置5035

master
smartwyy 6 months ago
parent b87337b8d9
commit 9986739ce8

@ -90,8 +90,13 @@ app.UseAuthorization();
app.UseCors("myCors");
app.MapControllers();
AppInfo.Container = app.Services.GetAutofacRoot();
var list = AppSettingsHelper.GetContent("Kestrel", "Endpoints", "http", "Url");
foreach (var s in list.Split(";"))
{
app.Urls.Add(s);
}
AppInfo.Container = app.Services.GetAutofacRoot();
ClientMgr.InitClient();
app.Run();

@ -20,5 +20,12 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5035"
}
}
},
"AllowedHosts": "*"
}

Loading…
Cancel
Save