mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 10:22: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user