Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnLynn committed Aug 29, 2024
1 parent df67d15 commit 7478f22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ docker run --rm -p 8000:8000 -v /PATH/TO/CONFIG/FILE:/app/etc/config.ini jinnlyn

gfwlist是在线获取,某些情况下可能被和谐或其它原因导致获取失败,可以通过以下几种方法解决该问题:
* 使用`--proxy`参数,通过代理获取gfwlist
* 使用环境变量`GP_RES_GFWLIST``--gfwlist-url`配置镜像加速地址
* 通过其它方式下载到本地,再通过`--gfwlist-local`加载
* 使用参数`--gfwlist-url=-`不进行在线获取,这种情况下你只能使用自定义规则

Expand All @@ -222,6 +223,10 @@ docker run --rm -p 8000:8000 -v /PATH/TO/CONFIG/FILE:/app/etc/config.ini jinnlyn
* 检查--proxy参数或配置proxy值是格式否符合`PROTOCOL://HOST:POST`,如`socks5://127.0.0.1:1080、http://127.0.0.1:8080`
* OSX Linux如果存在http_proxy、https_proxy环境变量,代理可能无法正常使用

1. 如何移除在gfwlist存在的规则

在用户规则中添加例外规则,如要删除gfwlist中的`example.com`规则则仅需在用户规则中添加`@@example.com`

1. PAC格式中,参数`--pac-precise`的精确匹配模式的作用是什么?

1.4.0之后生成的PAC文件默认只对域名进行匹配,如规则`.ftchinese.com/channel/video`处理后为`ftchinese.com`,所有在`ftchinese.com`下的网址都将通过匹配,在这种模式下可以减少PAC文件尺寸,并在一定程度上提高效率,推荐使用,但如果你依然想用原有的规则进行精确的网址匹配判断,则使用参数`--pac-precise`或在配置文件中设置`pac-precise=true`即可。
Expand Down
7 changes: 7 additions & 0 deletions example/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ gfwlist-update-local = true
# 默认: 空
gfwlist-decoded-save = ./gfwlist-decoded.txt

# 忽略gfwlist中的例外规则(@@) 默认: false
gfwlist-ignore-exception-rule = false

# 工作目录 默认为 空
# 如果设置 所有相对路径都会基于此转为绝对路径
# workdir =
Expand Down Expand Up @@ -232,6 +235,10 @@ output = ./surge-set.conf
[job:clash]
output = ./clash.yaml

[job:clash]
clash-set = true
output = ./clash-set.yaml

[job:sing]
output = ./sing-domain.json

Expand Down

0 comments on commit 7478f22

Please sign in to comment.