Sfoglia il codice sorgente

Actually commit and use new random UR ID

Jakob Borg 11 anni fa
parent
commit
1392cfc72d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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() {