Merge pull request #18 from Moonlight-Panel/AdditionalPortEnvMapper

Update WingsServerConverter.cs
This commit is contained in:
Marcel Baumgartner
2023-04-03 00:19:09 +02:00
committed by GitHub

View File

@@ -80,6 +80,13 @@ public class WingsServerConverter
wingsServer.Settings.Environment.Add(v.Key, v.Value);
}
}
int i = 0;
foreach (var allocation in server.Allocations)
{
wingsServer.Settings.Environment.Add("ML_PORT_" + i, allocation.Port.ToString());
i++;
}
// Stop
if (image.StopCommand.StartsWith("!"))