Some random patches
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user