Explorar o código

keep endpointipv6 unchanged when enable static endpoint

Max Ma hai 1 ano
pai
achega
6959e7da78
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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