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:
oomeow
2026-07-30 14:49:38 +00:00
committed by GitHub
parent 07a1515d8c
commit 10dbe60671
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@
### 🐞 修复问题
修复 macOS 多显示器切换时托盘速率样式不同步
修复 Mihomo API 变更后 inline proxy-provider 被错误过滤的问题,解决节点显示 Unknown 及延迟测试失败的问题
<details>
<summary><strong> ✨ 新增功能 </strong></summary>
+3
View File
@@ -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();
+1 -1
View File
@@ -67,7 +67,7 @@ export type ProxyMemberRef =
interface ProxyProviderView {
name: string
vehicleType: 'HTTP' | 'File'
vehicleType: 'HTTP' | 'File' | 'Inline'
updatedAt?: string
subscriptionInfo?: ProxySubscriptionInfo
proxyRecordIds: string[]