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
+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();