Netty 4 中弃用的 IpSubnet 和 CIDR

IpSubnet and CIDR Deprecated in Netty 4

我正在从 Netty 3 升级到 Netty 4,并试图追踪 IpCubnet 和 CIDR 类 的 history/intent 被弃用。

我在发行说明中找不到任何提及。我发现一个提交删除了 类 - "Remove the codecs and handlers that can't make it on time for 4.0.0.A1"

https://github.com/netty/netty/commit/45f19d02ff9a9e2c72e4d95e38c5d7f73960fe57

此功能是否因某种原因被弃用?或者它只是没有回到 Netty 4?

这些 类 已被重写和替换。现在您可以使用 AbstractRemoteAddressFilterUniqueIpFilterRuleBasedIpFilterIpSubnetFilterRule 等替代方法

查看 io.netty.handler.ipfilter 包。