diff --git a/Moonlight/App/Helpers/WingsServerConverter.cs b/Moonlight/App/Helpers/WingsServerConverter.cs index 2ef6ef6a..acc7ed17 100644 --- a/Moonlight/App/Helpers/WingsServerConverter.cs +++ b/Moonlight/App/Helpers/WingsServerConverter.cs @@ -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("!"))