Ver código fonte

keep endpointipv6 unchanged when enable static endpoint

Max Ma 1 ano atrás
pai
commit
6959e7da78
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      logic/hosts.go

+ 1 - 0
logic/hosts.go

@@ -217,6 +217,7 @@ 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