浏览代码

keep endpointipv6 unchanged when enable static endpoint

Max Ma 1 年之前
父节点
当前提交
6959e7da78
共有 1 个文件被更改,包括 1 次插入0 次删除
  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