Skip to content

Conversation

@hiFrankYoung
Copy link

No description provided.

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 0% with 26 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
clash-lib/src/app/net/mod.rs 0.00% 26 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ibigbug ibigbug requested a review from Copilot December 10, 2025 05:24
Copy link
Contributor

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 fixes the default outbound interface selection logic on iOS by reordering interface priorities and improving the sorting algorithm. The change prioritizes wired connections over wireless, wireless over cellular, and cellular over VPN interfaces to ensure optimal routing.

  • Reordered interface priority array to prefer wired (eth, Ethernet) over wireless (WLAN, Wi-Fi) over cellular (pdp_ip, rmnet, ccmni) over VPN (Tailscale)
  • Added comprehensive comments documenting interface name patterns for different platforms
  • Refactored sorting logic to prioritize by interface type first, then IPv6 availability, then IPv6 global unicast, and finally alphabetical order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ibigbug
Copy link
Member

ibigbug commented Dec 10, 2025

Please provide a PR comment explaining the new logic and fix the cargo fmt issue. Thanks.

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