Merge branch 'master' of gitea.azcona-becker.net:mochapowered/mocha-dotnet

This commit is contained in:
Michael Becker 2025-08-07 23:56:42 -04:00
commit 3023d6e513
2 changed files with 15 additions and 2 deletions

@ -1 +1 @@
Subproject commit 93e86302679876c3b963de550e8a4d7ef386c3cf
Subproject commit 4c5a4c336ea30705dc6992039383de9b4bbffba5

View File

@ -25,7 +25,20 @@ public class Program : WebApplication
public Dictionary<string, OmsSession> _Sessions = new Dictionary<string, OmsSession>();
protected override int DefaultPort => 4436;
protected override int DefaultPort
{
get
{
if (System.Environment.GetEnvironmentVariable("OMS_SERVERPORT") != null)
{
if (Int32.TryParse(System.Environment.GetEnvironmentVariable("OMS_SERVERPORT"), out int port))
{
return port;
}
}
return 4436;
}
}
public Program()
{