Add REMOTE_USB connection type and usb control permission

Adds ConnType::REMOTE_USB for the RemoteUsb feature (rustdesk/rustdesk#16278),
following the same pattern as TERMINAL, and ControlPermissions.Permission.usb
so USB forwarding can be controlled centrally like the other permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: AzimovIz <sergo.p.987@gmail.com>
This commit is contained in:
AzimovIz
2026-09-26 13:12:59 +00:00
co-authored by Claude Opus 5.5
parent 94ec710894
commit bee7c2458c
+2
View File
@@ -24,6 +24,7 @@ enum ConnType {
RDP = 3;
VIEW_CAMERA = 4;
TERMINAL = 5;
REMOTE_USB = 6;
}
message RegisterPeerResponse { bool request_pk = 2; }
@@ -61,6 +62,7 @@ message ControlPermissions {
block_input = 10;
remote_modify = 11;
privacy_mode = 12;
usb = 13;
}
uint64 permissions = 1;
}