Pārlūkot izejas kodu

keep endpointipv6 unchanged when enable static endpoint

Max Ma 1 gadu atpakaļ
vecāks
revīzija
6959e7da78
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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