Fix HTTP port information lost

This commit is contained in:
ChsBuffer
2020-09-24 19:21:13 +08:00
parent e9a1750871
commit 74f136bd93

View File

@@ -160,6 +160,13 @@ namespace Netch.Controllers
Global.MainForm.StatusText(i18N.Translate("Starting ", ModeController.Name));
if (await Task.Run(() => ModeController.Start(server, mode)))
{
switch (mode.Type)
{
case 3:
case 5:
StatusPortInfoText.HttpPort = port;
break;
}
UsingPorts.Add(port);
return true;
}