Added
- The
proxy.Config.RatelimitSubnetLenIPv4
andproxy.Config.RatelimitSubnetLenIPv6
. - The new
upstream.HostsResolver
implementation of theupstream.Resolver
. - The method
proxy.Proxy.LookupNetIP
.
Changed
- The default ratelimit subnet length for IPv6 addresses is now 56.
- The field
proxy.DNSContext.Addr
now has a type ofnetip.AddrPort
instead of anet.Addr
.
Removed
- The field
proxy.Config.RatelimitSubnetMaskIPv4
. Useproxy.Config.RatelimitSubnetLenIPv4
instead. - The field
proxy.Config.RatelimitSubnetMaskIPv6
. Useproxy.Config.RatelimitSubnetLenIPv6
instead. - The method
proxy.Proxy.LookupIPAddr
.