Skip to content

Conversation

21pages
Copy link
Collaborator

@21pages 21pages commented Aug 11, 2025

  1. Add punch type in log
  2. Show TCP/UDP/IPv6 in tooltip
  3. Skip udp punch if udp nat port is 0, which is a tcp punch in fact.

Test

Punch Test

TCP local addr, UDP punch hole, IPv6 local addr/Punch Hole, force relay with nightly to nightly/1.3.9

Tooltip

89ec4901-b46a-44b2-9265-015f32b48cf8
2d62b534-5e8c-4019-a4ab-b459581798bd
87e381bf-4e45-414d-b341-bfe74cbc805d
9c231a55-e965-4566-ac8d-e548f7379e55
32b23422-44a4-4595-932a-442d0a957a4f

ac9f3716f0875dba428259f75a8d7f7d


558f7240-fa5a-4171-b4c5-fb488bcd627d

skip udp punch

image

Signed-off-by: 21pages <sunboeasy@gmail.com>
@21pages 21pages requested a review from Copilot August 11, 2025 07:05
Copilot

This comment was marked as outdated.

Signed-off-by: 21pages <sunboeasy@gmail.com>
@21pages 21pages requested a review from Copilot August 11, 2025 07:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the connection information display by adding stream type details (TCP/UDP/IPv6) to tooltips and logs. It improves user visibility into the actual connection mechanism being used for remote connections.

  • Adds punch type logging to better track connection establishment attempts
  • Displays connection stream type (TCP/UDP/IPv6) in UI tooltips alongside existing security/direct indicators
  • Skips UDP punch attempts when UDP NAT port is 0, treating them as TCP punches

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/client.rs Core logic for tracking and returning stream type information during connection establishment
src/ui_session_interface.rs Updates interface to pass stream type parameter to UI handlers
src/ui/remote.rs Sciter UI handler updated to receive and process stream type information
src/ui/header.tis JavaScript logic to display stream type in connection tooltips
src/flutter.rs Flutter handler updated to include stream type in connection events
src/client/io_loop.rs Connection loop updated to pass stream type to UI
src/port_forward.rs Port forwarding client updated to handle new stream type return value
flutter/lib/models/model.dart Flutter model updated to store and display connection type with stream information
flutter/lib/mobile/pages/*.dart Mobile UI pages updated to use new connection display method
flutter/lib/desktop/pages/*.dart Desktop UI pages updated to use centralized connection text generation
flutter/lib/common/shared_state.dart Shared state updated to track stream type
flutter/lib/common.dart New utility function for generating connection text with stream type

Signed-off-by: 21pages <sunboeasy@gmail.com>
@rustdesk rustdesk merged commit a0659a2 into rustdesk:master Aug 11, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants