aboutsummaryrefslogtreecommitdiffstats
path: root/device/allowedips.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2022-03-16 16:09:48 -0700
committerJosh Bleecher Snyder <josh@tailscale.com>2022-03-16 16:09:48 -0700
commit42c9af45e12dbb2de4d3c273bfc7deeda984f827 (patch)
tree67d59df66ccd8683f92efb256323257adb240e5b /device/allowedips.go
parenttun/netstack: check error returned by SetDeadline() (diff)
downloadwireguard-go-42c9af45e12dbb2de4d3c273bfc7deeda984f827.tar.xz
wireguard-go-42c9af45e12dbb2de4d3c273bfc7deeda984f827.zip
all: update to Go 1.18
Bump go.mod and README. Switch to upstream net/netip. Use strings.Cut. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/allowedips.go')
-rw-r--r--device/allowedips.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/device/allowedips.go b/device/allowedips.go
index 06c5465..3cac694 100644
--- a/device/allowedips.go
+++ b/device/allowedips.go
@@ -11,10 +11,9 @@ import (
"errors"
"math/bits"
"net"
+ "net/netip"
"sync"
"unsafe"
-
- "golang.zx2c4.com/go118/netip"
)
type parentIndirection struct {