From 569a69dc4cddabba08c569640454006ad8d4416a Mon Sep 17 00:00:00 2001 From: database64128 Date: Mon, 8 Mar 2021 19:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8D=20Interop:=20v2ray=20domainMatcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shadowsocks.Interop/V2Ray/RoutingObject.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(), }; }