Skip to content

Commit e4075ca

Browse files
committed
doc
1 parent bd8f87a commit e4075ca

File tree

4 files changed

+0
-268
lines changed

4 files changed

+0
-268
lines changed

README.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Table of Contents
7171
* [Configuration Introduction](#configuration-introduction)
7272
* [Programmable](#programmable)
7373
* [Introduction to incoming variables](#introduction-to-incoming-variables)
74-
* [in_guiconfig](#in_guiconfig)
7574
* [in_dnsquery](#in_dnsquery)
7675
* [in_address](#in_address)
7776
* [in_httprequest](#in_httprequest)
@@ -92,7 +91,6 @@ Table of Contents
9291
* [配置介绍](#配置介绍)
9392
* [Programmable](#programmable-1)
9493
* [传入变量介绍](#传入变量介绍)
95-
* [in_guiconfig](#in_guiconfig-1)
9694
* [in_dnsquery](#in_dnsquery-1)
9795
* [in_address](#in_address-1)
9896
* [in_httprequest](#in_httprequest-1)
@@ -1046,31 +1044,11 @@ Take full control of your own network
10461044

10471045
| variable | type | condition | timing | description | out type |
10481046
| ------------------------------ | ---- | ----------- | --------------------------------- | ------------------------------------------------- | -------- |
1049-
| in_guiconfig | map | / | before connected | to override GUI configuration | map |
10501047
| in_dnsquery | map | FakeDNS: On | When a DNS query occurs | Script can decide how to handle this request | map |
10511048
| in_address | map | / | When connecting to an address | script can decide how to connect | map |
10521049
| in_httprequest | map | / | When an HTTP(S) request comes in | the script can decide how to handle this request | map |
10531050
| in_httprequest,in_httpresponse | map | / | when an HTTP(S) response comes in | the script can decide how to handle this response | map |
10541051

1055-
### in_guiconfig
1056-
1057-
| Key | Type | Description |
1058-
| --- | ---- | ------------------------------------------------- |
1059-
| \_ | bool | For future compatibility, this key can be ignored |
1060-
1061-
`out`, if it is `error` type will be recorded in the log. Ignored if not of type `map`, if it is `map` then explicitly specify each configuration item.
1062-
1063-
| Key | Type | Description |
1064-
| ---------- | ------ | ----------------- |
1065-
| systemdns4 | string | System DNS v4 |
1066-
| systemdns6 | string | System DNS v6 |
1067-
| fakedns | bool | Fake DNS switch |
1068-
| block | bool | GUI Block switch |
1069-
| bypass | bool | GUI Bypass switch |
1070-
| bypassdns4 | string | Bypass DNS v4 |
1071-
| bypassdns6 | string | Bypass DNS v6 |
1072-
| hosts | bool | GUI Hosts switch |
1073-
10741052
### in_dnsquery
10751053

10761054
| Key | Type | Description | Example |
@@ -1325,31 +1303,11 @@ Brook GUI 会在不同时机向脚本传入不同的全局变量,脚本只需
13251303
13261304
| 变量 | 类型 | 条件 | 时机 | 描述 | out 类型 |
13271305
| ------------------------------ | ---- | ------------- | ---------------------- | -------------------------- | -------- |
1328-
| in_guiconfig | map | / | 开启之前 | 用以覆盖 GUI 的配置 | map |
13291306
| in_dnsquery | map | FakeDNS: 开启 | 当 DNS 查询发生时 | 脚本可以决定如何处理此请求 | map |
13301307
| in_address | map | / | 当要连接某地址时 | 脚本可以决定如何进行连接 | map |
13311308
| in_httprequest | map | / | 当有 HTTP(S)请求传入时 | 脚本可以决定如何处理此请求 | map |
13321309
| in_httprequest,in_httpresponse | map | / | 当有 HTTP(S)响应传入时 | 脚本可以决定如何处理此响应 | map |
13331310
1334-
### in_guiconfig
1335-
1336-
| Key | 类型 | 描述 |
1337-
| --- | ---- | ------------------------ |
1338-
| \_ | bool | 向未来兼容,可忽略此 key |
1339-
1340-
`out`, 如果是 `error` 类型会被记录在日志。如果不是 `map` 类型则会被忽略, 如果是`map`那么明确指定每一个配置项
1341-
1342-
| Key | 类型 | 描述 |
1343-
| ---------- | ------ | --------------- |
1344-
| systemdns4 | string | System DNS v4 |
1345-
| systemdns6 | string | System DNS v6 |
1346-
| fakedns | bool | Fake DNS 开关 |
1347-
| block | bool | GUI Block 开关 |
1348-
| bypass | bool | GUI Bypass 开关 |
1349-
| bypassdns4 | string | Bypass DNS v4 |
1350-
| bypassdns6 | string | Bypass DNS v6 |
1351-
| hosts | bool | GUI Hosts 开关 |
1352-
13531311
### in_dnsquery
13541312
13551313
| Key | 类型 | 描述 | 示例 |

docs/gui-zh.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,11 @@ Brook GUI 会在不同时机向脚本传入不同的全局变量,脚本只需
8282

8383
| 变量 | 类型 | 条件 | 时机 | 描述 | out 类型 |
8484
| ------------------------------ | ---- | ------------- | ---------------------- | -------------------------- | -------- |
85-
| in_guiconfig | map | / | 开启之前 | 用以覆盖 GUI 的配置 | map |
8685
| in_dnsquery | map | FakeDNS: 开启 | 当 DNS 查询发生时 | 脚本可以决定如何处理此请求 | map |
8786
| in_address | map | / | 当要连接某地址时 | 脚本可以决定如何进行连接 | map |
8887
| in_httprequest | map | / | 当有 HTTP(S)请求传入时 | 脚本可以决定如何处理此请求 | map |
8988
| in_httprequest,in_httpresponse | map | / | 当有 HTTP(S)响应传入时 | 脚本可以决定如何处理此响应 | map |
9089

91-
### in_guiconfig
92-
93-
| Key | 类型 | 描述 |
94-
| --- | ---- | ------------------------ |
95-
| \_ | bool | 向未来兼容,可忽略此 key |
96-
97-
`out`, 如果是 `error` 类型会被记录在日志。如果不是 `map` 类型则会被忽略, 如果是`map`那么明确指定每一个配置项
98-
99-
| Key | 类型 | 描述 |
100-
| ---------- | ------ | --------------- |
101-
| systemdns4 | string | System DNS v4 |
102-
| systemdns6 | string | System DNS v6 |
103-
| fakedns | bool | Fake DNS 开关 |
104-
| block | bool | GUI Block 开关 |
105-
| bypass | bool | GUI Bypass 开关 |
106-
| bypassdns4 | string | Bypass DNS v4 |
107-
| bypassdns6 | string | Bypass DNS v6 |
108-
| hosts | bool | GUI Hosts 开关 |
109-
11090
### in_dnsquery
11191

11292
| Key | 类型 | 描述 | 示例 |

docs/gui.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,11 @@ Take full control of your own network
8282

8383
| variable | type | condition | timing | description | out type |
8484
| ------------------------------ | ---- | ----------- | --------------------------------- | ------------------------------------------------- | -------- |
85-
| in_guiconfig | map | / | before connected | to override GUI configuration | map |
8685
| in_dnsquery | map | FakeDNS: On | When a DNS query occurs | Script can decide how to handle this request | map |
8786
| in_address | map | / | When connecting to an address | script can decide how to connect | map |
8887
| in_httprequest | map | / | When an HTTP(S) request comes in | the script can decide how to handle this request | map |
8988
| in_httprequest,in_httpresponse | map | / | when an HTTP(S) response comes in | the script can decide how to handle this response | map |
9089

91-
### in_guiconfig
92-
93-
| Key | Type | Description |
94-
| --- | ---- | ------------------------------------------------- |
95-
| \_ | bool | For future compatibility, this key can be ignored |
96-
97-
`out`, if it is `error` type will be recorded in the log. Ignored if not of type `map`, if it is `map` then explicitly specify each configuration item.
98-
99-
| Key | Type | Description |
100-
| ---------- | ------ | ----------------- |
101-
| systemdns4 | string | System DNS v4 |
102-
| systemdns6 | string | System DNS v6 |
103-
| fakedns | bool | Fake DNS switch |
104-
| block | bool | GUI Block switch |
105-
| bypass | bool | GUI Bypass switch |
106-
| bypassdns4 | string | Bypass DNS v4 |
107-
| bypassdns6 | string | Bypass DNS v6 |
108-
| hosts | bool | GUI Hosts switch |
109-
11090
### in_dnsquery
11191

11292
| Key | Type | Description | Example |

docs/index.html

Lines changed: 0 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,6 @@
12001200
<li><a href="#configuration-introduction" rel="nofollow">Configuration Introduction</a></li>
12011201
<li><a href="#programmable" rel="nofollow">Programmable</a></li>
12021202
<li><a href="#introduction-to-incoming-variables" rel="nofollow">Introduction to incoming variables</a></li>
1203-
<li><a href="#in-guiconfig" rel="nofollow">in_guiconfig</a></li>
12041203
<li><a href="#in-dnsquery" rel="nofollow">in_dnsquery</a></li>
12051204
<li><a href="#in-address" rel="nofollow">in_address</a></li>
12061205
<li><a href="#in-httprequest" rel="nofollow">in_httprequest</a></li>
@@ -1224,7 +1223,6 @@
12241223
<li><a href="#%E9%85%8D%E7%BD%AE%E4%BB%8B%E7%BB%8D" rel="nofollow">配置介绍</a></li>
12251224
<li><a href="#programmable-1" rel="nofollow">Programmable</a></li>
12261225
<li><a href="#%E4%BC%A0%E5%85%A5%E5%8F%98%E9%87%8F%E4%BB%8B%E7%BB%8D" rel="nofollow">传入变量介绍</a></li>
1227-
<li><a href="#in-guiconfig-1" rel="nofollow">in_guiconfig</a></li>
12281226
<li><a href="#in-dnsquery-1" rel="nofollow">in_dnsquery</a></li>
12291227
<li><a href="#in-address-1" rel="nofollow">in_address</a></li>
12301228
<li><a href="#in-httprequest-1" rel="nofollow">in_httprequest</a></li>
@@ -1346,7 +1344,6 @@ <h1><a name="brook" class="anchor" href="#brook" rel="nofollow" aria-hidden="tru
13461344
<li><a href="#configuration-introduction" rel="nofollow">Configuration Introduction</a></li>
13471345
<li><a href="#programmable" rel="nofollow">Programmable</a></li>
13481346
<li><a href="#introduction-to-incoming-variables" rel="nofollow">Introduction to incoming variables</a></li>
1349-
<li><a href="#in-guiconfig" rel="nofollow">in_guiconfig</a></li>
13501347
<li><a href="#in-dnsquery" rel="nofollow">in_dnsquery</a></li>
13511348
<li><a href="#in-address" rel="nofollow">in_address</a></li>
13521349
<li><a href="#in-httprequest" rel="nofollow">in_httprequest</a></li>
@@ -1370,7 +1367,6 @@ <h1><a name="brook" class="anchor" href="#brook" rel="nofollow" aria-hidden="tru
13701367
<li><a href="#%E9%85%8D%E7%BD%AE%E4%BB%8B%E7%BB%8D" rel="nofollow">配置介绍</a></li>
13711368
<li><a href="#programmable-1" rel="nofollow">Programmable</a></li>
13721369
<li><a href="#%E4%BC%A0%E5%85%A5%E5%8F%98%E9%87%8F%E4%BB%8B%E7%BB%8D" rel="nofollow">传入变量介绍</a></li>
1373-
<li><a href="#in-guiconfig-1" rel="nofollow">in_guiconfig</a></li>
13741370
<li><a href="#in-dnsquery-1" rel="nofollow">in_dnsquery</a></li>
13751371
<li><a href="#in-address-1" rel="nofollow">in_address</a></li>
13761372
<li><a href="#in-httprequest-1" rel="nofollow">in_httprequest</a></li>
@@ -2531,15 +2527,6 @@ <h3><a name="introduction-to-incoming-variables" class="anchor" href="#introduct
25312527
</thead>
25322528

25332529
<tbody>
2534-
<tr>
2535-
<td>in_guiconfig</td>
2536-
<td>map</td>
2537-
<td>/</td>
2538-
<td>before connected</td>
2539-
<td>to override GUI configuration</td>
2540-
<td>map</td>
2541-
</tr>
2542-
25432530
<tr>
25442531
<td>in_dnsquery</td>
25452532
<td>map</td>
@@ -2577,88 +2564,6 @@ <h3><a name="introduction-to-incoming-variables" class="anchor" href="#introduct
25772564
</tr>
25782565
</tbody>
25792566
</table>
2580-
<h3><a name="in-guiconfig" class="anchor" href="#in-guiconfig" rel="nofollow" aria-hidden="true"><span class="octicon octicon-link"></span></a>
2581-
in_guiconfig</h3>
2582-
2583-
<table>
2584-
<thead>
2585-
<tr>
2586-
<th>Key</th>
2587-
<th>Type</th>
2588-
<th>Description</th>
2589-
</tr>
2590-
</thead>
2591-
2592-
<tbody>
2593-
<tr>
2594-
<td>_</td>
2595-
<td>bool</td>
2596-
<td>For future compatibility, this key can be ignored</td>
2597-
</tr>
2598-
</tbody>
2599-
</table>
2600-
2601-
<p><code>out</code>, if it is <code>error</code> type will be recorded in the log. Ignored if not of type <code>map</code>, if it is <code>map</code> then explicitly specify each configuration item.</p>
2602-
2603-
<table>
2604-
<thead>
2605-
<tr>
2606-
<th>Key</th>
2607-
<th>Type</th>
2608-
<th>Description</th>
2609-
</tr>
2610-
</thead>
2611-
2612-
<tbody>
2613-
<tr>
2614-
<td>systemdns4</td>
2615-
<td>string</td>
2616-
<td>System DNS v4</td>
2617-
</tr>
2618-
2619-
<tr>
2620-
<td>systemdns6</td>
2621-
<td>string</td>
2622-
<td>System DNS v6</td>
2623-
</tr>
2624-
2625-
<tr>
2626-
<td>fakedns</td>
2627-
<td>bool</td>
2628-
<td>Fake DNS switch</td>
2629-
</tr>
2630-
2631-
<tr>
2632-
<td>block</td>
2633-
<td>bool</td>
2634-
<td>GUI Block switch</td>
2635-
</tr>
2636-
2637-
<tr>
2638-
<td>bypass</td>
2639-
<td>bool</td>
2640-
<td>GUI Bypass switch</td>
2641-
</tr>
2642-
2643-
<tr>
2644-
<td>bypassdns4</td>
2645-
<td>string</td>
2646-
<td>Bypass DNS v4</td>
2647-
</tr>
2648-
2649-
<tr>
2650-
<td>bypassdns6</td>
2651-
<td>string</td>
2652-
<td>Bypass DNS v6</td>
2653-
</tr>
2654-
2655-
<tr>
2656-
<td>hosts</td>
2657-
<td>bool</td>
2658-
<td>GUI Hosts switch</td>
2659-
</tr>
2660-
</tbody>
2661-
</table>
26622567
<h3><a name="in-dnsquery" class="anchor" href="#in-dnsquery" rel="nofollow" aria-hidden="true"><span class="octicon octicon-link"></span></a>
26632568
in_dnsquery</h3>
26642569

@@ -3346,15 +3251,6 @@ <h3><a name="传入变量介绍" class="anchor" href="#%E4%BC%A0%E5%85%A5%E5%8F%
33463251
</thead>
33473252

33483253
<tbody>
3349-
<tr>
3350-
<td>in_guiconfig</td>
3351-
<td>map</td>
3352-
<td>/</td>
3353-
<td>开启之前</td>
3354-
<td>用以覆盖 GUI 的配置</td>
3355-
<td>map</td>
3356-
</tr>
3357-
33583254
<tr>
33593255
<td>in_dnsquery</td>
33603256
<td>map</td>
@@ -3392,88 +3288,6 @@ <h3><a name="传入变量介绍" class="anchor" href="#%E4%BC%A0%E5%85%A5%E5%8F%
33923288
</tr>
33933289
</tbody>
33943290
</table>
3395-
<h3><a name="in-guiconfig" class="anchor" href="#in-guiconfig" rel="nofollow" aria-hidden="true"><span class="octicon octicon-link"></span></a>
3396-
in_guiconfig</h3>
3397-
3398-
<table>
3399-
<thead>
3400-
<tr>
3401-
<th>Key</th>
3402-
<th>类型</th>
3403-
<th>描述</th>
3404-
</tr>
3405-
</thead>
3406-
3407-
<tbody>
3408-
<tr>
3409-
<td>_</td>
3410-
<td>bool</td>
3411-
<td>向未来兼容,可忽略此 key</td>
3412-
</tr>
3413-
</tbody>
3414-
</table>
3415-
3416-
<p><code>out</code>, 如果是 <code>error</code> 类型会被记录在日志。如果不是 <code>map</code> 类型则会被忽略, 如果是<code>map</code>那么明确指定每一个配置项</p>
3417-
3418-
<table>
3419-
<thead>
3420-
<tr>
3421-
<th>Key</th>
3422-
<th>类型</th>
3423-
<th>描述</th>
3424-
</tr>
3425-
</thead>
3426-
3427-
<tbody>
3428-
<tr>
3429-
<td>systemdns4</td>
3430-
<td>string</td>
3431-
<td>System DNS v4</td>
3432-
</tr>
3433-
3434-
<tr>
3435-
<td>systemdns6</td>
3436-
<td>string</td>
3437-
<td>System DNS v6</td>
3438-
</tr>
3439-
3440-
<tr>
3441-
<td>fakedns</td>
3442-
<td>bool</td>
3443-
<td>Fake DNS 开关</td>
3444-
</tr>
3445-
3446-
<tr>
3447-
<td>block</td>
3448-
<td>bool</td>
3449-
<td>GUI Block 开关</td>
3450-
</tr>
3451-
3452-
<tr>
3453-
<td>bypass</td>
3454-
<td>bool</td>
3455-
<td>GUI Bypass 开关</td>
3456-
</tr>
3457-
3458-
<tr>
3459-
<td>bypassdns4</td>
3460-
<td>string</td>
3461-
<td>Bypass DNS v4</td>
3462-
</tr>
3463-
3464-
<tr>
3465-
<td>bypassdns6</td>
3466-
<td>string</td>
3467-
<td>Bypass DNS v6</td>
3468-
</tr>
3469-
3470-
<tr>
3471-
<td>hosts</td>
3472-
<td>bool</td>
3473-
<td>GUI Hosts 开关</td>
3474-
</tr>
3475-
</tbody>
3476-
</table>
34773291
<h3><a name="in-dnsquery" class="anchor" href="#in-dnsquery" rel="nofollow" aria-hidden="true"><span class="octicon octicon-link"></span></a>
34783292
in_dnsquery</h3>
34793293

0 commit comments

Comments
 (0)