feat: 目前完成了订阅功能和 Xray-Core 的更新管理.

This commit is contained in:
2025-01-07 09:50:02 +08:00
parent 78c7db692a
commit 99cb0a03a5
22 changed files with 1153 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
namespace Proxd_man.Config;
public class ProxdConfig
{
public InboundConfig Inbound { get; } = new(new HttpInboundSetting());
public SubscribeSetting Subscribe { get; } = new();
}
public class InboundConfig(HttpInboundSetting? http = null)
{
public HttpInboundSetting? Http { get; } = http;
}
public class HttpInboundSetting(string? bindAddress = null, ushort port = 1080, BasicInboundAuthSetting? authentication = null)
{
public string? BindAddress { get; } = bindAddress;
public ushort Port = port;
public BasicInboundAuthSetting? Authentication { get; } = authentication;
}
public class BasicInboundAuthSetting(string username, string password)
{
public string Username { get; } = username;
public string Password { get; } = password;
}
public class SubscribeSetting
{
public List<SubscribeSource> Subscribes { get; } = [];
}