Switch most everything to netip in prep for ipv6 in the overlay (#1173)

This commit is contained in:
Nate Brown authored and GitHub committed 2024-07-31 10:18:56 -05:00
1 parent 00458302ca
commit e264a0ff88
79 files changed
+1900 -2682

No files matched your search

+5 -7
View File
@@ -3,23 +3,21 @@ package test
import (
"errors"
"io"
"net"
"github.com/slackhq/nebula/iputil"
"net/netip"
)
type NoopTun struct{}
func (NoopTun) RouteFor(iputil.VpnIp) iputil.VpnIp {
return 0
func (NoopTun) RouteFor(addr netip.Addr) netip.Addr {
return netip.Addr{}
}
func (NoopTun) Activate() error {
return nil
}
func (NoopTun) Cidr() *net.IPNet {
return nil
func (NoopTun) Cidr() netip.Prefix {
return netip.Prefix{}
}
func (NoopTun) Name() string {