mirror of
https://github.com/safing/portbase
synced 2025-09-05 12:09:58 +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.
|
// registry is marked as online.
|
||||||
func (reg *ResourceRegistry) LoadIndexes() error {
|
func (reg *ResourceRegistry) LoadIndexes() error {
|
||||||
var firstErr error
|
var firstErr error
|
||||||
for _, idx := range reg.indexes {
|
for _, idx := range reg.getIndexes() {
|
||||||
err := reg.loadIndexFile(idx)
|
err := reg.loadIndexFile(idx)
|
||||||
if err != nil && reg.Online {
|
if err != nil && reg.Online {
|
||||||
// try to download the index file if a local disk version
|
// try to download the index file if a local disk version
|
||||||
|
|
Loading…
Add table
Reference in a new issue