mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 14:15: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)
|
ip6, addr6, err := net.ParseCIDR(a.Address6)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
convertedNode.Address = *addr6
|
convertedNode.Address6 = *addr6
|
||||||
convertedNode.Address.IP = ip6
|
convertedNode.Address6.IP = ip6
|
||||||
}
|
}
|
||||||
convertedNode.FailoverNode, _ = uuid.Parse(a.FailoverNode)
|
convertedNode.FailoverNode, _ = uuid.Parse(a.FailoverNode)
|
||||||
convertedNode.LastModified = time.Unix(a.LastModified, 0)
|
convertedNode.LastModified = time.Unix(a.LastModified, 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue