fix(migrations): use dweb.link (#10133)

this is a quick fix to allow users who's ISP is blocking ipfs.io
to benefit from HTTPS mirror
This commit is contained in:
Marcin Rataj 2023-09-21 16:37:26 +02:00 committed by GitHub
parent 4e3008fdf3
commit f46bf77c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ import (
)
const (
defaultGatewayURL = "https://ipfs.io"
// default is different name than ipfs.io which is being blocked by some ISPs
defaultGatewayURL = "https://dweb.link"
// Default maximum download size.
defaultFetchLimit = 1024 * 1024 * 512
)

View File

@ -153,7 +153,7 @@ func ReadMigrationConfig(repoRoot string, userConfigFile string) (*config.Migrat
// GetMigrationFetcher creates one or more fetchers according to
// downloadSources,.
func GetMigrationFetcher(downloadSources []string, distPath string, newIpfsFetcher func(string) Fetcher) (Fetcher, error) {
const httpUserAgent = "go-ipfs"
const httpUserAgent = "kubo/migration"
const numTriesPerHTTP = 3
var fetchers []Fetcher