浏览代码

force update traffic keys

abhishek9686 9 月之前
父节点
当前提交
eb7e31fa87
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      controllers/hosts.go

+ 1 - 0
controllers/hosts.go

@@ -326,6 +326,7 @@ func hostUpdateFallback(w http.ResponseWriter, r *http.Request) {
 			replacePeers = true
 		}
 		sendPeerUpdate = logic.UpdateHostFromClient(&hostUpdate.Host, currentHost)
+		currentHost.TrafficKeyPublic = hostUpdate.Host.TrafficKeyPublic
 		err := logic.UpsertHost(currentHost)
 		if err != nil {
 			slog.Error("failed to update host", "id", currentHost.ID, "error", err)