mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
This commit is contained in:
parent
d40d9d5698
commit
05738001ac
@ -1278,7 +1278,7 @@ func (m *model) ClusterConfig(deviceID protocol.DeviceID, cm protocol.ClusterCon
|
||||
for _, fcfg := range folders {
|
||||
cfg.Folders = append(cfg.Folders, fcfg)
|
||||
}
|
||||
cfg.Devices = make([]config.DeviceConfiguration, len(devices))
|
||||
cfg.Devices = make([]config.DeviceConfiguration, 0, len(devices))
|
||||
for _, dcfg := range devices {
|
||||
cfg.Devices = append(cfg.Devices, dcfg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user