mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 07:16:06 +08:00
fix overwriting of ipv6 endpoint
This commit is contained in:
parent
0e167e521c
commit
86a0db981e
|
@ -217,7 +217,6 @@ func UpdateHost(newHost, currentHost *models.Host) {
|
|||
newHost.Nodes = currentHost.Nodes
|
||||
newHost.PublicKey = currentHost.PublicKey
|
||||
newHost.TrafficKeyPublic = currentHost.TrafficKeyPublic
|
||||
newHost.EndpointIPv6 = currentHost.EndpointIPv6
|
||||
// changeable fields
|
||||
if len(newHost.Version) == 0 {
|
||||
newHost.Version = currentHost.Version
|
||||
|
|
Loading…
Reference in a new issue