mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-03 10:24:24 +08:00
Merge pull request #1982 from gravitl/bugfix_dual_stack_addr
fix node ipv6 address update
This commit is contained in:
commit
41a1e6e648
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