From d24ce8b62cc34e24cdfd964a658323fa1ee6eac6 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 3 Sep 2026 20:15:06 +0800 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab --- libs/hbb_common | 2 +- src/server/connection.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/hbb_common b/libs/hbb_common index 05ed68fed..6918d3593 160000 --- a/libs/hbb_common +++ b/libs/hbb_common @@ -1 +1 @@ -Subproject commit 05ed68fed8198cbb72edb64c7b4ae4d38c70c6ae +Subproject commit 6918d35935b48b03ab24f11dfda48b6379807cbf diff --git a/src/server/connection.rs b/src/server/connection.rs index 4767e05fc..28c4a25fa 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -2576,11 +2576,13 @@ impl Connection { let PortForward { host, port, + multiplex, special_fields: _, } = pf; push(b"port_forward"); push(host.as_bytes()); push(&port.to_le_bytes()); + push(&[*multiplex as u8]); } // Variants this build does not know execute as remote, so they latch as remote. None | Some(_) => push(b"remote"),