mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-07 09:42:07 +08:00
fix(proxy): fix inline providers being filtered after Mihomo API change (#7640)
* feat(proxy): add Inline vehicle type support * docs: add fix for Mihomo API proxy-provider filtering to changelog
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### 🐞 修复问题
|
||||
|
||||
修复 macOS 多显示器切换时托盘速率样式不同步
|
||||
修复 Mihomo API 变更后 inline proxy-provider 被错误过滤的问题,解决节点显示 Unknown 及延迟测试失败的问题
|
||||
|
||||
<details>
|
||||
<summary><strong> ✨ 新增功能 </strong></summary>
|
||||
|
||||
@@ -155,6 +155,8 @@ pub enum ProxyProviderVehicleType {
|
||||
Http,
|
||||
#[serde(rename = "File")]
|
||||
File,
|
||||
#[serde(rename = "Inline")]
|
||||
Inline,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Serialize)]
|
||||
@@ -307,6 +309,7 @@ fn build_provider_records(
|
||||
let vehicle_type = match vehicle_type {
|
||||
VehicleType::HTTP => ProxyProviderVehicleType::Http,
|
||||
VehicleType::File => ProxyProviderVehicleType::File,
|
||||
VehicleType::Inline => ProxyProviderVehicleType::Inline,
|
||||
_ => continue,
|
||||
};
|
||||
let provider_index = views.len();
|
||||
|
||||
@@ -67,7 +67,7 @@ export type ProxyMemberRef =
|
||||
|
||||
interface ProxyProviderView {
|
||||
name: string
|
||||
vehicleType: 'HTTP' | 'File'
|
||||
vehicleType: 'HTTP' | 'File' | 'Inline'
|
||||
updatedAt?: string
|
||||
subscriptionInfo?: ProxySubscriptionInfo
|
||||
proxyRecordIds: string[]
|
||||
|
||||
Reference in New Issue
Block a user