Skip to content

fix: omit inactive TUN IPv6 from generated config - #2238

Open
paiwoo wants to merge 1 commit into
chen08209:mainfrom
paiwoo:fix/disabled-tun-ipv6-export
Open

fix: omit inactive TUN IPv6 from generated config#2238
paiwoo wants to merge 1 commit into
chen08209:mainfrom
paiwoo:fix/disabled-tun-ipv6-export

Conversation

@paiwoo

@paiwoo paiwoo commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • omit tun.inet6-address from the raw config returned to FlClash when top-level ipv6 is disabled
  • add a regression test covering the generated-config path

Related issue

Rationale

Mihomo clears this address later while parsing a runtime config, but FlClash first round-trips the raw config and writes it back to YAML. Returning the inactive default at that stage produces a contradictory generated configuration: ipv6 is false while a TUN IPv6 address is present.

Verification

The focused test is included in core/hub_test.go. The root project does not contain a Go module, so the project build workflow or CI must execute it rather than go test ./core directly.

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