mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-11-02 00:06:56 +00:00
Add api command
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//go:build !with_usbip || !(linux || (darwin && cgo) || windows)
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
)
|
||||
|
||||
func runAPIUsbipDeviceList() error {
|
||||
return errUsbipLocalNotIncluded()
|
||||
}
|
||||
|
||||
func runAPIUsbipDeviceShow(_ string) error {
|
||||
return errUsbipLocalNotIncluded()
|
||||
}
|
||||
|
||||
func runAPIUsbipShare(_ []string) error {
|
||||
return errUsbipLocalNotIncluded()
|
||||
}
|
||||
|
||||
func errUsbipLocalNotIncluded() error {
|
||||
return E.New(`USB/IP is not included in this build, rebuild with -tags with_usbip (supported on Linux, Windows, and macOS with CGO)`)
|
||||
}
|
||||
Reference in New Issue
Block a user