Skip to content

fix: omit inactive TUN IPv6 addresses - #130

Merged
SingLinkNetwork merged 3 commits into
mainfrom
fix/tun-ipv6-config
Aug 10, 2026
Merged

fix: omit inactive TUN IPv6 addresses#130
SingLinkNetwork merged 3 commits into
mainfrom
fix/tun-ipv6-config

Conversation

@SingLinkNetwork

Copy link
Copy Markdown
Owner

What changed

  • Clear tun.inet6-address when the top-level configuration has ipv6: false.
  • Preserve supplied TUN IPv6 addresses when IPv6 is enabled.
  • Add real YAML round-trip regression tests for both paths.

Root cause

The client rewrites raw config before Mihomo runtime normalization. The old return path exposed an inactive default TUN IPv6 address alongside ipv6: false, producing a contradictory generated configuration.

Verification

  • Static diff and Go formatting checks passed.
  • The local linked worktree intentionally lacks the Clash.Meta submodule, so Go tests could not build locally and are not claimed as run.
  • This PR must pass the full cross-platform CI suite before merge.

Closes #125

@SingLinkNetwork
SingLinkNetwork marked this pull request as ready for review August 10, 2026 15:25
@SingLinkNetwork
SingLinkNetwork merged commit 5ad5584 into main Aug 10, 2026
63 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.

[BUG] 關閉 IPv6 時產生的 TUN 設定仍保留 inet6-address

1 participant