Skip to content

Commit

Permalink
refactor: restore DNSLink redirect to local gateway (#831)
Browse files Browse the repository at this point in the history
This change restores DNSLink redirect to local gateway as the default setting:

https://docs.ipfs.iohttp://127.0.0.1:8080/ipns/docs.ipfs.io/

During the Design Review Call for we've decided to keep the default user experience of loading DNSLink websites from local gateway by default.

Ref. ipfs-inactive/docs#405 (comment)
  • Loading branch information
lidel authored Dec 11, 2019
1 parent 6c37c6a commit ed36f4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion add-on/src/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.optionDefaults = Object.freeze({
linkify: false,
dnslinkPolicy: 'best-effort',
dnslinkDataPreload: true,
dnslinkRedirect: false,
dnslinkRedirect: true,
recoverFailedHttpRequests: true,
detectIpfsPathHeader: true,
preloadAtPublicGateway: true,
Expand Down
1 change: 0 additions & 1 deletion test/functional/lib/ipfs-request-dnslink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('modifyRequest processing of DNSLinks', function () {
ipfsNodeType: 'external',
peerCount: 1,
redirect: true,
dnslinkRedirect: true, // NOTE: this is opt-in now
catchUnhandledProtocols: true,
gwURLString: 'http://127.0.0.1:8080',
pubGwURLString: 'https://ipfs.io'
Expand Down

0 comments on commit ed36f4e

Please sign in to comment.