mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Fix unsafe access to reg.indexes in updater
This commit is contained in:
parent
9d7fd1235d
commit
fa36efb71c
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func (reg *ResourceRegistry) ScanStorage(root string) error {
|
|||
// registry is marked as online.
|
||||
func (reg *ResourceRegistry) LoadIndexes() error {
|
||||
var firstErr error
|
||||
for _, idx := range reg.indexes {
|
||||
for _, idx := range reg.getIndexes() {
|
||||
err := reg.loadIndexFile(idx)
|
||||
if err != nil && reg.Online {
|
||||
// try to download the index file if a local disk version
|
||||
|
|
Loading…
Add table
Reference in a new issue