mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
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:
parent
4e3008fdf3
commit
f46bf77c80
@ -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
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user