From 785bd62aa39955c026278508723a43f928173e7f Mon Sep 17 00:00:00 2001 From: Piotr Bartman Date: Tue, 20 Feb 2024 12:52:58 +0100 Subject: [PATCH] q-dev: port assignment --- qubesusbproxy/core3ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesusbproxy/core3ext.py b/qubesusbproxy/core3ext.py index da08996..4fd6370 100644 --- a/qubesusbproxy/core3ext.py +++ b/qubesusbproxy/core3ext.py @@ -571,7 +571,7 @@ async def on_device_attach_usb(self, vm, event, device, options): raise qubes.exc.QubesException( 'USB device attach do not support user options') identity = options['identity'] - if device.self_identity != identity: + if identity != 'any' and device.self_identity != identity: print(f"Unrecognized identity, skipping attachment of {device}", file=sys.stderr) raise qubes.devices.UnrecognizedDevice(