ClashX(Mac)Git地址
-
編輯
~/.config/clash/proxyIgnoreList.plist
(如果沒有該文件,則新建) -
參考Demo文件加入自定義的白名單域名
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <string>192.168.0.0/16</string> <string>10.0.0.0/8</string> <string>172.16.0.0/12</string> <string>127.0.0.1</string> <string>localhost</string> <string>*.local</string> <string>*.crashlytics.com</string> <!-- 上面的不能刪掉 --> ...加入新的域名,如:<string>*.baidu.com</string> </array> </plist>
-
重啟ClashX
Clash For Windows
繞過系統代理
Clash for Windows在v 0.4.5 版本后可以自定義系統代理需要繞過的域名或IP部分應用檢測到系統代理會拒絕響應(例如網易雲音樂uwp),此功能用於解決此類問題
打開
config.yaml
代理配置文件
port: 8888 socks-port: 8889 redir-port: 0 allow-lan: true mode: Rule log-level: info external-controller: '0.0.0.0:6170' secret: '' Proxy: ... Proxy Group: ... Rule: ... cfw-bypass: ... # 原有字段不用刪除 - 'music.163.com' # 網易雲域名1 - '*.music.126.net' # 網易雲域名2
cfw-bypass類型為數組,item為需要繞過的域名或節點,支持通配符*
最后一行對應系統中“請勿將代理服務器用於本地(Intranet)地址”選項,請確保此項在最底部
轉載 http://blog.kelvinsail.com/2020/06/16/ClashX-配置/