diff --git a/redirect_nftables_rules.go b/redirect_nftables_rules.go index ea03d40..08f6baa 100644 --- a/redirect_nftables_rules.go +++ b/redirect_nftables_rules.go @@ -103,10 +103,6 @@ func (r *autoRedirect) nftablesCreateLocalAddressSets( update = true } } - localAddresses6 = common.Filter(localAddresses6, func(it netip.Prefix) bool { - address := it.Addr() - return address.IsLoopback() || address.IsGlobalUnicast() && !address.IsPrivate() - }) if len(lastAddresses) == 0 || update { _, err := nftablesCreateIPSet(nft, table, 6, "inet6_local_address_set", nftables.TableFamilyIPv6, nil, localAddresses6, false, update) if err != nil {