mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-30 14:01:45 +08:00
feat: 初步支持 USB 网卡桥接;删除 OTG 端点预算管理
This commit is contained in:
@@ -17,6 +17,12 @@ pub async fn list_usb_devices() -> Json<Vec<usb_reset::UsbDeviceInfo>> {
|
||||
Json(usb_reset::list_usb_devices())
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
pub async fn list_network_interfaces() -> Result<Json<Vec<crate::otg::bridge::NetworkInterfaceInfo>>>
|
||||
{
|
||||
crate::otg::bridge::list_network_interfaces().map(Json)
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[derive(Deserialize)]
|
||||
pub struct UsbResetRequest {
|
||||
|
||||
Reference in New Issue
Block a user