소스 검색

Actually commit and use new random UR ID

Jakob Borg 11 년 전
부모
커밋
1392cfc72d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      cmd/syncthing/main.go

+ 2 - 0
cmd/syncthing/main.go

@@ -575,6 +575,8 @@ func syncthingMain() {
 			// Previously the ID was generated from the node ID. We now need
 			// to generate a new one.
 			opts.URUniqueID = randomString(6)
+			cfg.SetOptions(opts)
+			cfg.Save()
 		}
 		go usageReportingLoop(m)
 		go func() {