mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
downloader: whitelist only .seg.torrent files. (#8729)
This commit is contained in:
parent
957a94e551
commit
9a9db2d90b
@ -227,12 +227,10 @@ func (d *WebSeeds) downloadTorrentFilesFromProviders(ctx context.Context, rootDi
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
addedNew++
|
addedNew++
|
||||||
if strings.HasSuffix(name, ".v.torrent") || strings.HasSuffix(name, ".ef.torrent") {
|
if !strings.HasSuffix(name, ".seg.torrent") {
|
||||||
_, fName := filepath.Split(name)
|
_, fName := filepath.Split(name)
|
||||||
if strings.HasPrefix(fName, "commitment") {
|
d.logger.Log(d.verbosity, "[snapshots] webseed has .torrent, but we skip it because this type not supported yet", "name", fName)
|
||||||
d.logger.Log(d.verbosity, "[snapshots] webseed has .torrent, but we skip it because we don't support it yet", "name", name)
|
continue
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
name := name
|
name := name
|
||||||
tUrls := tUrls
|
tUrls := tUrls
|
||||||
|
Loading…
Reference in New Issue
Block a user