port forward: the legacy comment names the mapping, not the window

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 16:57:04 +08:00
parent c109145c54
commit b0f26aabc3

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. 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, or reopening
// the window, is how a user picks up an upgraded peer; nothing
// switches modes underneath live connections.
Claim::Legacy => {
{
let mut lc = lc.write().unwrap();