mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 04:03:58 +00:00
Small fix
This commit is contained in:
@@ -88,7 +88,6 @@ public class ProxyOptions
|
|||||||
{
|
{
|
||||||
public bool Enabled { get; set; } = true;
|
public bool Enabled { get; set; } = true;
|
||||||
public int Port { get; set; } = 18888;
|
public int Port { get; set; } = 18888;
|
||||||
public int ServerHttpPort { get; set; } = 21500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LoaderOptions
|
public class LoaderOptions
|
||||||
|
|||||||
@@ -41,8 +41,7 @@
|
|||||||
},
|
},
|
||||||
"Proxy": {
|
"Proxy": {
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"Port": 18888,
|
"Port": 18888
|
||||||
"ServerHttpPort": 21500
|
|
||||||
},
|
},
|
||||||
"Loader": {
|
"Loader": {
|
||||||
"GamePath": "",
|
"GamePath": "",
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ public sealed class ProxyServer(
|
|||||||
|
|
||||||
return ("127.0.0.1", request.Port switch
|
return ("127.0.0.1", request.Port switch
|
||||||
{
|
{
|
||||||
80 => _options.ServerHttpPort,
|
80 => ConfigManager.Config.HttpServer.Port,
|
||||||
893 => 31443,
|
893 => 31443,
|
||||||
13443 => 13443,
|
13443 => 13443,
|
||||||
18443 => 18443,
|
18443 => 18443,
|
||||||
|
|||||||
Reference in New Issue
Block a user