Skip to content

Commit

Permalink
fix(migrations): use dweb.link
Browse files Browse the repository at this point in the history
this is a quick fix to allow users who's ISP is blocking ipfs.io
to benefit from HTTPS mirror
  • Loading branch information
lidel committed Sep 20, 2023
1 parent 4e3008f commit 1e8687e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion repo/fsrepo/migrations/httpfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion repo/fsrepo/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e8687e

Please sign in to comment.