소스 검색

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)