AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Properly migrate to `netip`

Open EugeneOne1 opened this issue 3 years ago • 0 comments

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.

EugeneOne1 avatar Oct 14 '22 10:10 EugeneOne1