@@ -72,13 +72,19 @@ The `[policy]` section contains an array of `overrides` tables. Each override ru
7272
7373### Match Criteria (` match ` )
7474
75- You must specify either a ` domain ` or a ` cidr ` (with ` port ` ).
75+ You can specify a ` domain ` list or an ` addr ` list (containing ` cidr ` and ` port ` ).
7676
7777| Field | Type | Description |
7878| :------- | :----- | :-------------------------------------------------------------------------- |
79- | ` domain ` | String | Domain pattern. Supports wildcards (` * ` , ` ** ` ). |
80- | ` cidr ` | String | IP range in CIDR notation (e.g., ` 192.168.0.0/24 ` ). Requires ` port ` to be set. |
81- | ` port ` | String | Port or port range (e.g., ` 80 ` , ` 80-443 ` , ` all ` ). Required if ` cidr ` is used. |
79+ | ` domain ` | Array | List of domain patterns. Supports wildcards (` * ` , ` ** ` ). |
80+ | ` addr ` | Array | List of address rules. Each rule requires ` cidr ` and ` port ` . |
81+
82+ #### Address Rule (` addr ` )
83+
84+ | Field | Type | Description |
85+ | :----- | :----- | :-------------------------------------------------------------------------- |
86+ | ` cidr ` | String | IP range in CIDR notation (e.g., ` 192.168.0.0/24 ` ). |
87+ | ` port ` | String | Port or port range (e.g., ` 80 ` , ` 80-443 ` , ` all ` ). |
8288
8389### DNS Override (` dns ` )
8490
@@ -113,20 +119,20 @@ Customize how HTTPS connections are established. The available fields mirror the
113119 [[policy .overrides ]]
114120 name = " allow youtube"
115121 priority = 50
116- match = { domain = " *.youtube.com" }
122+ match = { domain = [ " *.youtube.com" ] }
117123 https = { disorder = true , fake-count = 7 }
118124
119125 # Example B: Bypass DPI for local network traffic (Standard Connection)
120126 [[policy .overrides ]]
121127 name = " skip local"
122128 priority = 51
123- match = { cidr = " 192.168.0.0/24" , port = " all" }
129+ match = { addr = [{ cidr = " 192.168.0.0/24" , port = " all" }] }
124130 https = { skip = true }
125131
126132 # Example C: Block a specific domain
127133 [[policy .overrides ]]
128134 name = " block ads"
129135 priority = 100
130- match = { domain = " ads.example.com" }
136+ match = { domain = [ " ads.example.com" ] }
131137 block = true
132138```
0 commit comments