feat: guard the mixed-port and external-controller

This commit is contained in:
GyDi
2022-11-22 15:45:17 +08:00
parent fe8168784f
commit f95ddd594e
6 changed files with 169 additions and 139 deletions
+1 -2
View File
@@ -194,8 +194,7 @@ impl PrfItem {
// 使用软件自己的代理
if self_proxy {
let port = Config::clash().data().get_info()?.port;
let port = port.ok_or(anyhow::anyhow!("failed to get clash info port"))?;
let port = Config::clash().data().get_mixed_port();
let proxy_scheme = format!("http://127.0.0.1:{port}");