port forward: the legacy comment names re-adding the mapping only

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
This commit is contained in:
rustdesk
2026-09-04 18:15:13 +08:00
parent 5182e5a9ef
commit 13524f4429

View File

@@ -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());