|
|
@@ -12,6 +12,13 @@ namespace Shadowsocks.Interop.V2Ray |
|
|
|
/// </summary> |
|
|
|
public string DomainStrategy { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets or sets the domain matcher used for routing. |
|
|
|
/// Default value: "" (binary search). |
|
|
|
/// Available values: "" | "hybrid" |
|
|
|
/// </summary> |
|
|
|
public string DomainMatcher { get; set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets or sets the list of routing rules. |
|
|
|
/// </summary> |
|
|
@@ -25,9 +32,16 @@ namespace Shadowsocks.Interop.V2Ray |
|
|
|
public RoutingObject() |
|
|
|
{ |
|
|
|
DomainStrategy = "AsIs"; |
|
|
|
DomainMatcher = ""; |
|
|
|
Rules = new(); |
|
|
|
} |
|
|
|
|
|
|
|
public static RoutingObject Default => new() |
|
|
|
{ |
|
|
|
DomainStrategy = "IPOnDemand", |
|
|
|
DomainMatcher = "hybrid", |
|
|
|
}; |
|
|
|
|
|
|
|
public static RoutingObject DefaultBalancers => new() |
|
|
|
{ |
|
|
|
Balancers = new(), |
|
|
|