Explorar o código

Actually commit and use new random UR ID

Jakob Borg %!s(int64=11) %!d(string=hai) anos
pai
achega
1392cfc72d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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() {