mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-26 00:17:48 +00:00
Bumped dependencies
This commit is contained in:
@@ -7,8 +7,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/jinzhu/gorm/dialects/postgres"
|
||||
"github.com/tailscale/wireguard-go/wgcfg"
|
||||
"inet.af/netaddr"
|
||||
"tailscale.com/tailcfg"
|
||||
"tailscale.com/wgengine/wgcfg"
|
||||
)
|
||||
|
||||
type Machine struct {
|
||||
@@ -43,10 +44,10 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
addrs := []wgcfg.CIDR{}
|
||||
allowedIPs := []wgcfg.CIDR{}
|
||||
addrs := []netaddr.IPPrefix{}
|
||||
allowedIPs := []netaddr.IPPrefix{}
|
||||
|
||||
ip, err := wgcfg.ParseCIDR(fmt.Sprintf("%s/32", m.IPAddress))
|
||||
ip, err := netaddr.ParseIPPrefix(fmt.Sprintf("%s/32", m.IPAddress))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user