From 13524f4429467c36db338ab3b402bb37e61afead Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 4 Sep 2026 18:15:13 +0800 Subject: [PATCH] port forward: the legacy comment names re-adding the mapping only Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab --- src/port_forward.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/port_forward.rs b/src/port_forward.rs index 0fba9fe29..a11aff445 100644 --- a/src/port_forward.rs +++ b/src/port_forward.rs @@ -146,9 +146,9 @@ pub async fn listen( } // A `Legacy` listener stays legacy until it closes: every accept // logs in on its own, asks for no tunnel, and takes the raw pipe - // whatever the peer reports. Re-adding the mapping, or reopening - // the window, is how a user picks up an upgraded peer; nothing - // switches modes underneath live connections. + // whatever the peer reports. Re-adding the mapping is how a user + // picks up an upgraded peer; nothing switches modes underneath + // live connections. Claim::Legacy => { let interface = interface.with_port_forward(login_target(&remote_host, remote_port, false)); let mut forward = Framed::new(forward, BytesCodec::new());