Compare commits

...

4 Commits

Author SHA1 Message Date
Kei-Luna
49f4fdfda5 Update ConfigContainer.cs 2026-04-30 15:46:03 +09:00
Kei-Luna
bcc5716f97 Fix for the function to save to the database. 2026-04-30 15:46:00 +09:00
Kei-Luna
4bd66621bf Update ProxyServer.cs 2026-04-30 10:02:08 +09:00
Kei-Luna
14a611bf8e readme 2026-04-30 06:08:53 +09:00
4 changed files with 14 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ public class ServerOption
public string FallbackLanguage { get; set; } = "EN";
public string[] DefaultPermissions { get; set; } = ["Admin"];
public ServerProfile ServerProfile { get; set; } = new();
public bool EnableGmMenu { get; set; } = true;
public bool EnableGmMenu { get; set; } = false;
public bool AutoCreateUser { get; set; } = true;
public bool SavePersonalDebugFile { get; set; } = false;
public bool AutoSendResponseWhenNoHandler { get; set; } = true;

View File

@@ -74,19 +74,27 @@ public sealed class ProxyServer(
catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested)
{
}
catch (SocketException) when (stoppingToken.IsCancellationRequested)
{
}
catch (ObjectDisposedException) when (stoppingToken.IsCancellationRequested)
{
}
}
public override Task StopAsync(CancellationToken cancellationToken)
public override async Task StopAsync(CancellationToken cancellationToken)
{
// Cancel the BackgroundService token first so shutdown exceptions are treated as expected.
var stopTask = base.StopAsync(cancellationToken);
_listener?.Stop();
return base.StopAsync(cancellationToken);
await stopTask;
}
private async Task HandleClientAsync(TcpClient client, CancellationToken cancellationToken)
{
using (client)
{
logger.Info($"Proxy New client: {client.Client.RemoteEndPoint}");
//logger.Debug($"Proxy New client: {client.Client.RemoteEndPoint}");
try
{
await HandleClientCoreAsync(client, cancellationToken);

View File

@@ -32,7 +32,7 @@
## Requirements
- [.NET SDK 9.0](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
- [.NET SDK 10.0](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)
## Running

View File

@@ -32,7 +32,7 @@ English documentation is available in [README.md](README.md).
## 要件
- [.NET SDK 9.0](https://dotnet.microsoft.com/ja-jp/download/dotnet/9.0)
- [.NET SDK 10.0](https://dotnet.microsoft.com/ja-jp/download/dotnet/10.0)
## 起動方法