mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 21:23:04 +00:00
21 lines
966 B
C#
21 lines
966 B
C#
namespace ServiceLib.Models;
|
|
|
|
public record CoreConfigContext
|
|
{
|
|
public required ProfileItem Node { get; init; }
|
|
public RoutingItem? RoutingItem { get; init; }
|
|
public DNSItem? RawDnsItem { get; init; }
|
|
public SimpleDNSItem SimpleDnsItem { get; init; } = new();
|
|
public Dictionary<string, ProfileItem> AllProxiesMap { get; init; } = new();
|
|
public Config AppConfig { get; init; } = new();
|
|
public FullConfigTemplateItem? FullConfigTemplate { get; init; } = new();
|
|
|
|
// TUN Compatibility
|
|
public bool IsTunEnabled { get; init; } = false;
|
|
public HashSet<string> ProtectDomainList { get; init; } = new();
|
|
// -> tun inbound --(if routing proxy)--> relay outbound
|
|
// -> proxy core (relay inbound --> proxy outbound --(dialerProxy)--> protect outbound)
|
|
// -> protect inbound -> direct proxy outbound data -> internet
|
|
public int TunProtectSsPort { get; init; } = 0;
|
|
public int ProxyRelaySsPort { get; init; } = 0;
|
|
}
|