Skip to content

fix: preserve TUN auto-detect key in JSON#4

Open
paiwoo wants to merge 1 commit into
chen08209:FlClashfrom
paiwoo:fix/raw-tun-json-key
Open

fix: preserve TUN auto-detect key in JSON#4
paiwoo wants to merge 1 commit into
chen08209:FlClashfrom
paiwoo:fix/raw-tun-json-key

Conversation

@paiwoo

@paiwoo paiwoo commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • serialize RawTun.AutoDetectInterface as auto-detect-interface instead of the Go field name
  • add a regression test for the JSON field name used by FlClash config round trips

Related issue

Verification

  • Attempted: go test ./config -run TestRawTunJSONUsesMihomoAutoDetectInterfaceKey -count=1.
  • The local Go 1.25.0 installation fails while compiling the Go runtime with duplicate Swiss-map symbols before project packages build. Please rely on CI for the test result.

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.

1 participant