mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-02-16 02:20:43 +00:00
add three state control permissions
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -30,6 +30,24 @@ message PunchHoleRequest {
|
|||||||
bytes socket_addr_v6 = 10;
|
bytes socket_addr_v6 = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ControlPermissions {
|
||||||
|
enum Permission {
|
||||||
|
keyboard = 0;
|
||||||
|
remote_printer = 1;
|
||||||
|
clipboard = 2;
|
||||||
|
file = 3;
|
||||||
|
audio = 4;
|
||||||
|
camera = 5;
|
||||||
|
terminal = 6;
|
||||||
|
tunnel = 7;
|
||||||
|
restart = 8;
|
||||||
|
recording = 9;
|
||||||
|
block_input = 10;
|
||||||
|
remote_modify = 11;
|
||||||
|
}
|
||||||
|
uint64 permissions = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message PunchHole {
|
message PunchHole {
|
||||||
bytes socket_addr = 1;
|
bytes socket_addr = 1;
|
||||||
string relay_server = 2;
|
string relay_server = 2;
|
||||||
@@ -38,6 +56,7 @@ message PunchHole {
|
|||||||
bool force_relay = 5;
|
bool force_relay = 5;
|
||||||
int32 upnp_port = 6;
|
int32 upnp_port = 6;
|
||||||
bytes socket_addr_v6 = 7;
|
bytes socket_addr_v6 = 7;
|
||||||
|
ControlPermissions control_permissions = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TestNatRequest {
|
message TestNatRequest {
|
||||||
@@ -124,6 +143,7 @@ message RequestRelay {
|
|||||||
string licence_key = 6;
|
string licence_key = 6;
|
||||||
ConnType conn_type = 7;
|
ConnType conn_type = 7;
|
||||||
string token = 8;
|
string token = 8;
|
||||||
|
ControlPermissions control_permissions = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RelayResponse {
|
message RelayResponse {
|
||||||
@@ -151,6 +171,7 @@ message FetchLocalAddr {
|
|||||||
bytes socket_addr = 1;
|
bytes socket_addr = 1;
|
||||||
string relay_server = 2;
|
string relay_server = 2;
|
||||||
bytes socket_addr_v6 = 3;
|
bytes socket_addr_v6 = 3;
|
||||||
|
ControlPermissions control_permissions = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LocalAddr {
|
message LocalAddr {
|
||||||
|
|||||||
Reference in New Issue
Block a user