Merge branch 'master' of gitea.azcona-becker.net:mochapowered/mocha-dotnet
This commit is contained in:
commit
3023d6e513
@ -1 +1 @@
|
||||
Subproject commit 93e86302679876c3b963de550e8a4d7ef386c3cf
|
||||
Subproject commit 4c5a4c336ea30705dc6992039383de9b4bbffba5
|
||||
@ -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()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user