AdguardTeam / AdguardTeam/AdGuardHome
Properly migrate to `netip`
- Lingua principale
- TypeScript
- Stelle
- 36.9k
- Fork
- 2.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Prerequisites
- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/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`][netip-release-note] 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`][net-ip-doc] 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.
[netip-release-note]: https://tip.golang.org/doc/go1.18#netip
[net-ip-doc]: https://pkg.go.dev/net#IP
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.