mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
refactor: simplify proxy type handling and improve error handling in network commands
This commit is contained in:
@@ -259,11 +259,11 @@ impl PrfItem {
|
||||
|
||||
// 选择代理类型
|
||||
let proxy_type = if self_proxy {
|
||||
ProxyType::SelfProxy
|
||||
ProxyType::Localhost
|
||||
} else if with_proxy {
|
||||
ProxyType::SystemProxy
|
||||
ProxyType::System
|
||||
} else {
|
||||
ProxyType::NoProxy
|
||||
ProxyType::None
|
||||
};
|
||||
|
||||
// 使用网络管理器发送请求
|
||||
|
||||
Reference in New Issue
Block a user