Merge pull request #2939 from gravitl/NET-1253

NET-1253: Fix Overwriting of IPv6 endpoint
This commit is contained in:
Abhishek K 2024-05-17 12:06:23 +05:30 committed by GitHub
commit 8048565664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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