fixed message for vhci mode only linux. and changed readme

This commit is contained in:
2026-02-19 07:25:27 +01:00
parent 1c4ebddd05
commit 4d33063b82
7 changed files with 27 additions and 2 deletions
+2 -2
View File
@@ -91,8 +91,8 @@ func (um *UseManager) GetAttachedDevices() []*AttachedDevice {
// AttachDevice requests and attaches a remote USB device
func (um *UseManager) AttachDevice(clientID, busID string) error {
// Check if VHCI is available
if !usbip.IsVHCIAvailable() {
return fmt.Errorf("vhci-hcd kernel module not loaded (run: sudo modprobe vhci-hcd)")
if err := usbip.VHCIUnavailableError(); err != nil {
return err
}
key := busID + "@" + clientID