add config for server transport type

This commit is contained in:
Stanley Dimant
2025-02-02 03:02:30 +01:00
parent 88d0ab2d99
commit 9af89200c8
4 changed files with 41 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ using MareSynchronos.MareConfiguration;
using MareSynchronos.MareConfiguration.Models;
using MareSynchronos.Services.Mediator;
using MareSynchronos.WebAPI;
using Microsoft.AspNetCore.Http.Connections;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
using System.IdentityModel.Tokens.Jwt;
@@ -549,4 +550,15 @@ public class ServerConfigurationManager
return discordToken;
}
public HttpTransportType GetTransport()
{
return CurrentServer.HttpTransportType;
}
public void SetTransportType(HttpTransportType httpTransportType)
{
CurrentServer.HttpTransportType = httpTransportType;
Save();
}
}