Skip to content

feat: add InterfaceMetric and RouteMetric fields#63

Open
FIL033 wants to merge 1 commit intoSagerNet:devfrom
FIL033:dev
Open

feat: add InterfaceMetric and RouteMetric fields#63
FIL033 wants to merge 1 commit intoSagerNet:devfrom
FIL033:dev

Conversation

@FIL033
Copy link

@FIL033 FIL033 commented Feb 6, 2026

Resolves #62

This PR adds configurable interface and route metrics to allow users to control routing priorities across different devices with the same configuration file.

Changes:

  • Add InterfaceMetric field for TUN interface priority (Windows only)
  • Add RouteMetric field for route priority (Windows and Linux)

Backward Compatibility:

Both fields default to 0 (use existing behavior), maintaining full backward compatibility.

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.

Feature: Add configurable interface and route metrics

1 participant