Browse Source

🔍 Interop: v2ray domainMatcher

pull/3132/head
database64128 3 years ago
parent
commit
569a69dc4c
No known key found for this signature in database GPG Key ID: 1CA27546BEDB8B01
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      Shadowsocks.Interop/V2Ray/RoutingObject.cs

+ 5
- 3
Shadowsocks.Interop/V2Ray/RoutingObject.cs View File

@@ -14,8 +14,8 @@ namespace Shadowsocks.Interop.V2Ray

/// <summary>
/// Gets or sets the domain matcher used for routing.
/// Default value: "" (binary search).
/// Available values: "" | "hybrid"
/// Default value: "linear".
/// Available values: "linear" | "hybrid"
/// </summary>
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(),
};
}


Loading…
Cancel
Save