Files
sing-box-extended-mirror/cmd/sing-box/cmd_api_usbip_stub.go
T

24 lines
555 B
Go
Raw Normal View History

2026-08-13 20:54:40 +08:00
//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)`)
}