From df15d9064ef30f7b03535b41c2fb57e78eda7c85 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Mon, 3 Apr 2023 00:18:33 +0200 Subject: [PATCH] Update WingsServerConverter.cs --- Moonlight/App/Helpers/WingsServerConverter.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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("!"))