mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 22:01:19 +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.PublicKey = currentHost.PublicKey
|
||||
newHost.TrafficKeyPublic = currentHost.TrafficKeyPublic
|
||||
newHost.EndpointIPv6 = currentHost.EndpointIPv6
|
||||
// changeable fields
|
||||
if len(newHost.Version) == 0 {
|
||||
newHost.Version = currentHost.Version
|
||||
|
Reference in New Issue
Block a user