@cryptotaxi247 / kubo / commits / f46bf77c8

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

Marcin Rataj committed Sep 21, 2023 at 16:37 UTC f46bf77c801028152aef3636c88d9dbe72b0276d
2 files changed +3 -2
repo/fsrepo/migrations/httpfetcher.go
+2 -1
@@ -10,7 +10,8 @@ import (
10 )
11
12 const (
13 - defaultGatewayURL = "https://ipfs.io"
13 + // default is different name than ipfs.io which is being blocked by some ISPs
14 + defaultGatewayURL = "https://dweb.link"
15 // Default maximum download size.
16 defaultFetchLimit = 1024 * 1024 * 512
17 )
repo/fsrepo/migrations/migrations.go
+1 -1
@@ -153,7 +153,7 @@ func ReadMigrationConfig(repoRoot string, userConfigFile string) (*config.Migrat
153 // GetMigrationFetcher creates one or more fetchers according to
154 // downloadSources,.
155 func GetMigrationFetcher(downloadSources []string, distPath string, newIpfsFetcher func(string) Fetcher) (Fetcher, error) {
156 - const httpUserAgent = "go-ipfs"
156 + const httpUserAgent = "kubo/migration"
157 const numTriesPerHTTP = 3
158
159 var fetchers []Fetcher