fix overwriting of ipv6 endpoint

This commit is contained in:
abhishek9686 2024-05-16 09:34:01 +05:30
parent 0e167e521c
commit 86a0db981e

View file

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