mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-31 09:35:00 +03:00
@@ -16,10 +16,5 @@ public record CoreConfigContext
|
||||
|
||||
// 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 TunProtectSocksPort { get; init; } = 0;
|
||||
public int ProxyRelaySocksPort { get; init; } = 0;
|
||||
public HashSet<string> ProtectDomainList { get; init; } = [];
|
||||
}
|
||||
|
||||
@@ -47,9 +47,9 @@ public class Inbounds4Ray
|
||||
{
|
||||
public string tag { get; set; }
|
||||
|
||||
public int port { get; set; }
|
||||
public int? port { get; set; }
|
||||
|
||||
public string listen { get; set; }
|
||||
public string? listen { get; set; }
|
||||
|
||||
public string protocol { get; set; }
|
||||
|
||||
@@ -75,6 +75,18 @@ public class Inboundsettings4Ray
|
||||
public bool? allowTransparent { get; set; }
|
||||
|
||||
public List<AccountsItem4Ray>? accounts { get; set; }
|
||||
|
||||
public string? name { get; set; }
|
||||
|
||||
public int? MTU { get; set; }
|
||||
|
||||
public List<string>? gateway { get; set; }
|
||||
|
||||
public List<string>? autoSystemRoutingTable { get; set; }
|
||||
|
||||
public string? autoOutboundsInterface { get; set; }
|
||||
|
||||
// public List<string>? dns { get; set; }
|
||||
}
|
||||
|
||||
public class UsersItem4Ray
|
||||
@@ -511,6 +523,8 @@ public class AccountsItem4Ray
|
||||
public class Sockopt4Ray
|
||||
{
|
||||
public string? dialerProxy { get; set; }
|
||||
[JsonPropertyName("interface")]
|
||||
public string? Interface { get; set; }
|
||||
}
|
||||
|
||||
public class FragmentItem4Ray
|
||||
|
||||
Reference in New Issue
Block a user