chore(all): use netip.Prefix for ip networks

- remove usage of `net.IPNet`
- remove usage of `netaddr.IPPrefix`
This commit is contained in:
Quentin McGaw
2023-04-27 13:41:05 +00:00
parent 801a7fd6fe
commit d21a943779
32 changed files with 344 additions and 315 deletions

View File

@@ -1,7 +1,7 @@
package routing
import (
"net"
"net/netip"
"sync"
"github.com/qdm12/gluetun/internal/netlink"
@@ -48,7 +48,7 @@ type Linker interface {
type Routing struct {
netLinker NetLinker
logger Logger
outboundSubnets []net.IPNet
outboundSubnets []netip.Prefix
stateMutex sync.RWMutex
}