mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-09 22:11:02 +03:00
hbb_common: bump to the port-forward-mux proto
Also latches PortForward.multiplex into login_scope_digest, which destructures PortForward's fields exhaustively by design (a new field must be latched or deliberately ignored to compile). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
This commit is contained in:
Submodule libs/hbb_common updated: 05ed68fed8...6918d35935
@@ -2576,11 +2576,13 @@ impl Connection {
|
|||||||
let PortForward {
|
let PortForward {
|
||||||
host,
|
host,
|
||||||
port,
|
port,
|
||||||
|
multiplex,
|
||||||
special_fields: _,
|
special_fields: _,
|
||||||
} = pf;
|
} = pf;
|
||||||
push(b"port_forward");
|
push(b"port_forward");
|
||||||
push(host.as_bytes());
|
push(host.as_bytes());
|
||||||
push(&port.to_le_bytes());
|
push(&port.to_le_bytes());
|
||||||
|
push(&[*multiplex as u8]);
|
||||||
}
|
}
|
||||||
// Variants this build does not know execute as remote, so they latch as remote.
|
// Variants this build does not know execute as remote, so they latch as remote.
|
||||||
None | Some(_) => push(b"remote"),
|
None | Some(_) => push(b"remote"),
|
||||||
|
|||||||
Reference in New Issue
Block a user