AdGuardHome
AdGuardHome copied to clipboard
Properly migrate to `netip`
Prerequisites
-
[X] I have checked the Wiki and Discussions and found no answer
-
[X] I have searched other issues and found no duplicates
-
[X] I want to request a feature or enhancement and not ask a question
Description
The Go standard library has introduced the netip package as per version 1.18. It includes types and methods for convenient work with IP addresses and networks.
For the moment, AdGuard Home widely uses the legacy net.IP type in all the network-aware code. This issue should be used to track the progress of gradual migration to the new netip.Addr/netip.AddrPort/netip.Prefix types.