mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
add config for server transport type
This commit is contained in:
parent
88d0ab2d99
commit
9af89200c8
4 changed files with 41 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue