cmd/syncthing: Default folder should also have lower case ID

This commit is contained in:
Jakob Borg 2016-08-13 23:23:18 +02:00
parent e6364407a9
commit 42849af5a8

View File

@ -946,7 +946,7 @@ func defaultConfig(myName string) config.Configuration {
if !noDefaultFolder {
l.Infoln("Default folder created and/or linked to new config")
folderID := rand.String(5) + "-" + rand.String(5)
folderID := strings.ToLower(rand.String(5) + "-" + rand.String(5))
defaultFolder = config.NewFolderConfiguration(folderID, locations[locDefFolder])
defaultFolder.Label = "Default Folder (" + folderID + ")"
defaultFolder.RescanIntervalS = 60