1
0
forked from uestc/Notes
Notes/网络技术/科学上网/Clash/Clash设置白名单.md
2024-10-17 15:36:48 +08:00

18 lines
730 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Clash设置白名单
> 2024/02/13 @zhanli.
最近在使用Clash的时候发现局域网、知乎、部分网站开启了Clash后无法访问。所以需要配置Clash的白名单。打开路径`C:\Users\Administrator\.config\clash`[Windows平台]下的`config.yaml`。添加或者修改`cfw-bypass`,其中*表示通配符。在linux平台可能是`~/.config\clash`下面的`config.yaml`文件。
```yaml
mixed-port: 7890
allow-lan: true
external-controller: 127.0.0.1:49090
secret: ''
# 下面列表示不用代理的网址
cfw-bypass:
- 'logzhan.ticp.io' # 私有域名
- '*.zhihu.com' # 知乎
```
经过实际测试之前由于开启clash导致的`zhihu`以及个人域名都可以正常访问了。