feat: 目前完成了订阅功能和 Xray-Core 的更新管理.
This commit is contained in:
@@ -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; } = [];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user