Pārlūkot izejas kodu

Actually commit and use new random UR ID

Jakob Borg 11 gadi atpakaļ
vecāks
revīzija
1392cfc72d
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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() {