Skip to content

Commit

Permalink
Fix type issues for v2ray routing
Browse files Browse the repository at this point in the history
  • Loading branch information
sholiverlee authored and Tkd-Alex committed May 22, 2024
1 parent d260112 commit 8d1eb79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vpn/v2ray/v2ray-conf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ declare namespace V2RayConf {
}

namespace Routing {
type domainStrategy = "AsIs" | "IPIfNonMatch" | "IPOnDemand";
type DomainStrategy = "AsIs" | "IPIfNonMatch" | "IPOnDemand";
namespace Rule {
type Type = "field";
}
Expand All @@ -56,11 +56,11 @@ declare namespace V2RayConf {
ip?: string[];
port?: number | string;
// sourcePort?: number | string;
network?: Rule.Network;
network?: Network;
source?: string[];
user?: string[];
inboundTag?: string[];
protocol?: Rule.Protocol[];
protocol?: Protocol[];
attrs?: string;
// (V2Ray 4.18+) A Starlark script, used for detecting traffic attributes. When this script returns true, this rule takes effect.
outboundTag?: string;
Expand Down

0 comments on commit 8d1eb79

Please sign in to comment.