From efb12f208c0efb86f330ff414f32fee1cbf94f6d Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Fri, 2 Sep 2022 09:13:50 +0200 Subject: [PATCH] Move db to net/netip --- db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index f0a0a598..17df384d 100644 --- a/db.go +++ b/db.go @@ -6,6 +6,7 @@ import ( "encoding/json" "errors" "fmt" + "net/netip" "time" "github.com/glebarez/sqlite" @@ -13,7 +14,6 @@ import ( "gorm.io/driver/postgres" "gorm.io/gorm" "gorm.io/gorm/logger" - "inet.af/netaddr" "tailscale.com/tailcfg" ) @@ -259,7 +259,7 @@ func (hi HostInfo) Value() (driver.Value, error) { return string(bytes), err } -type IPPrefixes []netaddr.IPPrefix +type IPPrefixes []netip.Prefix func (i *IPPrefixes) Scan(destination interface{}) error { switch value := destination.(type) {