Some random patches

This commit is contained in:
Marcel Baumgartner
2023-04-14 18:13:51 +02:00
parent 41032d30b0
commit ad2be499db
4 changed files with 17 additions and 10 deletions

View File

@@ -16,11 +16,13 @@ public class DaemonApiHelper
private string GetApiUrl(Node node)
{
/* SSL not implemented in moonlight daemon
if(node.Ssl)
return $"https://{node.Fqdn}:{node.MoonlightDaemonPort}/";
else
return $"http://{node.Fqdn}:{node.MoonlightDaemonPort}/";
//return $"https://{node.Fqdn}:{node.HttpPort}/";
return $"http://{node.Fqdn}:{node.MoonlightDaemonPort}/";*/
return $"http://{node.Fqdn}:{node.MoonlightDaemonPort}/";
}
public async Task<T> Get<T>(Node node, string resource)

View File

@@ -118,12 +118,15 @@ public class WingsServerConverter
foreach (var section in child.GetSection("find").GetChildren())
{
replaces.Add(new()
if (section.Value != null)
{
Match = section.Key,
Replace_With = section.Value
.Replace("{{server.build.default.port}}", def.Port.ToString())
});
replaces.Add(new()
{
Match = section.Key,
Replace_With = section.Value
.Replace("{{server.build.default.port}}", def.Port.ToString())
});
}
}
wingsServer.Process_Configuration.Configs.Add(new()