fix node ipv6 address update

This commit is contained in:
Anish Mukherjee 2023-01-27 10:01:54 +05:30
parent 6e50011ceb
commit b926d393be

View file

@ -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)