diff --git a/docs/changelog.md b/docs/changelog.md index 1d70517..2f92eda 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,11 @@ icon: material/alert-decagram --- +#### 1.0.0-beta.14 + +* Rename `template.dns_default` to `template.dns` +* Add `template.domain_strategy_local` + #### 1.0.0-beta.13 * Add `template.auto_redirect` diff --git a/template/filter/filter_1100.go b/template/filter/filter_1100.go index 4c4d1d9..7f6efc2 100644 --- a/template/filter/filter_1100.go +++ b/template/filter/filter_1100.go @@ -33,6 +33,7 @@ func filter1100(metadata metadata.Metadata, options *option.Options) { inbound.TunOptions.Inet6Address = append(inbound.TunOptions.Inet6Address, common.Filter(inbound.TunOptions.Address, func(it netip.Prefix) bool { return it.Addr().Is6() })...) + inbound.TunOptions.Address = nil } //nolint:staticcheck //goland:noinspection GoDeprecation @@ -43,6 +44,7 @@ func filter1100(metadata metadata.Metadata, options *option.Options) { inbound.TunOptions.Inet6RouteAddress = append(inbound.TunOptions.Inet6RouteAddress, common.Filter(inbound.TunOptions.RouteAddress, func(it netip.Prefix) bool { return it.Addr().Is6() })...) + inbound.TunOptions.RouteAddress = nil } //nolint:staticcheck //goland:noinspection GoDeprecation @@ -53,6 +55,7 @@ func filter1100(metadata metadata.Metadata, options *option.Options) { inbound.TunOptions.Inet6RouteExcludeAddress = append(inbound.TunOptions.Inet6RouteExcludeAddress, common.Filter(inbound.TunOptions.RouteExcludeAddress, func(it netip.Prefix) bool { return it.Addr().Is6() })...) + inbound.TunOptions.RouteExcludeAddress = nil } } newInbounds = append(newInbounds, inbound)