mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
fix node ipv6 address update
This commit is contained in:
parent
6e50011ceb
commit
b926d393be
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ func (a *ApiNode) ConvertToServerNode(currentNode *Node) *Node {
|
|||
}
|
||||
ip6, addr6, err := net.ParseCIDR(a.Address6)
|
||||
if err == nil {
|
||||
convertedNode.Address = *addr6
|
||||
convertedNode.Address.IP = ip6
|
||||
convertedNode.Address6 = *addr6
|
||||
convertedNode.Address6.IP = ip6
|
||||
}
|
||||
convertedNode.FailoverNode, _ = uuid.Parse(a.FailoverNode)
|
||||
convertedNode.LastModified = time.Unix(a.LastModified, 0)
|
||||
|
|
Loading…
Reference in a new issue