mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-20 15:45:45 +08:00
fix overwriting of ipv6 endpoint
This commit is contained in:
@@ -217,7 +217,6 @@ func UpdateHost(newHost, currentHost *models.Host) {
|
|||||||
newHost.Nodes = currentHost.Nodes
|
newHost.Nodes = currentHost.Nodes
|
||||||
newHost.PublicKey = currentHost.PublicKey
|
newHost.PublicKey = currentHost.PublicKey
|
||||||
newHost.TrafficKeyPublic = currentHost.TrafficKeyPublic
|
newHost.TrafficKeyPublic = currentHost.TrafficKeyPublic
|
||||||
newHost.EndpointIPv6 = currentHost.EndpointIPv6
|
|
||||||
// changeable fields
|
// changeable fields
|
||||||
if len(newHost.Version) == 0 {
|
if len(newHost.Version) == 0 {
|
||||||
newHost.Version = currentHost.Version
|
newHost.Version = currentHost.Version
|
||||||
|
Reference in New Issue
Block a user