add config for server transport type
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user