From 22623b11b5df3ba5dc9d9f10b231a35e343915a7 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 16 Aug 2024 19:03:50 +0200 Subject: [PATCH] trying to get passed insert card --- Medusa.Core/Handlers/Boot/GetServicesHandler.cs | 14 ++++++++++---- Medusa.Core/Handlers/Common/GetFacilityHandler.cs | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Medusa.Core/Handlers/Boot/GetServicesHandler.cs b/Medusa.Core/Handlers/Boot/GetServicesHandler.cs index 087a9a6..2b22385 100644 --- a/Medusa.Core/Handlers/Boot/GetServicesHandler.cs +++ b/Medusa.Core/Handlers/Boot/GetServicesHandler.cs @@ -11,7 +11,7 @@ namespace Medusa.Core.Handlers.Boot private readonly IServer _server = server; private readonly ILogger _logger = logger; private readonly XDocument _body = body; - private const string CommonUrl = "http://127.0.0.1:8083/"; + private const string CommonUrl = "http://127.0.0.1:8083/ea"; private string listeningAddress = "http://127.0.0.1:8083"; public Task HandleAsync(string model) @@ -52,7 +52,7 @@ namespace Medusa.Core.Handlers.Boot { services.Add(new XElement("item", new XAttribute("name", service), - new XAttribute("url", $"{CommonUrl}{service}"))); + new XAttribute("url", $"{CommonUrl}/{service}"))); } services.Add(new XElement("item", new XAttribute("name", "ntp"), @@ -80,7 +80,10 @@ namespace Medusa.Core.Handlers.Boot private static void AddMdxServices(XElement services) { const string mdxurl = $"{CommonUrl}"; - string[] mdxServices = ["local"]; + string[] mdxServices = [ + "local", "local2", "lobby", "slocal", "slocal2", "sglocal", "sglocal2", "lab", "globby", + "slobby", "sglobby" + ]; foreach(string service in mdxServices) services.Add(new XElement("item", new XAttribute("name", service), new XAttribute("url", mdxurl))); @@ -89,7 +92,10 @@ namespace Medusa.Core.Handlers.Boot private static void AddM39Services(XElement services) { const string m39url = $"{CommonUrl}"; - string[] m39Services = ["local"]; + string[] m39Services = [ + "local", "local2", "lobby", "slocal", "slocal2", "sglocal", "sglocal2", "lab", "globby", + "slobby", "sglobby" + ]; foreach(string service in m39Services) services.Add(new XElement("item", new XAttribute("name", service), new XAttribute("url", m39url))); diff --git a/Medusa.Core/Handlers/Common/GetFacilityHandler.cs b/Medusa.Core/Handlers/Common/GetFacilityHandler.cs index 2e91a5d..3942f6e 100644 --- a/Medusa.Core/Handlers/Common/GetFacilityHandler.cs +++ b/Medusa.Core/Handlers/Common/GetFacilityHandler.cs @@ -16,7 +16,7 @@ namespace Medusa.Core.Handlers.Common public Task HandleAsync(string model) { - var port = "5293"; + var port = "8083"; var facility = new XElement("facility", new XAttribute("status", "0")); @@ -33,7 +33,7 @@ namespace Medusa.Core.Handlers.Common new XElement("class", 0, new XAttribute("__type", "u8"))); var portfw = new XElement("portfw", - new XElement("globalip", "127.0.0.1", new XAttribute("__type", "ip4")), + new XElement("globalip", "0.0.0.0", new XAttribute("__type", "ip4")), new XElement("globalport", port, new XAttribute("__type", "u16")), new XElement("privateport", port, new XAttribute("__type", "u16")));