diff --git a/Shadowsocks.Interop/V2Ray/RoutingObject.cs b/Shadowsocks.Interop/V2Ray/RoutingObject.cs index 093c20e7..b35804b6 100644 --- a/Shadowsocks.Interop/V2Ray/RoutingObject.cs +++ b/Shadowsocks.Interop/V2Ray/RoutingObject.cs @@ -14,8 +14,8 @@ namespace Shadowsocks.Interop.V2Ray /// /// Gets or sets the domain matcher used for routing. - /// Default value: "" (binary search). - /// Available values: "" | "hybrid" + /// Default value: "linear". + /// Available values: "linear" | "hybrid" /// public string DomainMatcher { get; set; } @@ -32,7 +32,7 @@ namespace Shadowsocks.Interop.V2Ray public RoutingObject() { DomainStrategy = "AsIs"; - DomainMatcher = ""; + DomainMatcher = "linear"; Rules = new(); } @@ -44,6 +44,8 @@ namespace Shadowsocks.Interop.V2Ray public static RoutingObject DefaultBalancers => new() { + DomainStrategy = "IPOnDemand", + DomainMatcher = "hybrid", Balancers = new(), }; }