Skip to content

Commit f18894f

Browse files
committedDec 11, 2019
refactor: restore dnslink redirect to local gateway
1 parent 6c37c6a commit f18894f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎add-on/src/lib/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports.optionDefaults = Object.freeze({
1818
linkify: false,
1919
dnslinkPolicy: 'best-effort',
2020
dnslinkDataPreload: true,
21-
dnslinkRedirect: false,
21+
dnslinkRedirect: true,
2222
recoverFailedHttpRequests: true,
2323
detectIpfsPathHeader: true,
2424
preloadAtPublicGateway: true,

‎test/functional/lib/ipfs-request-dnslink.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe('modifyRequest processing of DNSLinks', function () {
3434
ipfsNodeType: 'external',
3535
peerCount: 1,
3636
redirect: true,
37-
dnslinkRedirect: true, // NOTE: this is opt-in now
3837
catchUnhandledProtocols: true,
3938
gwURLString: 'http://127.0.0.1:8080',
4039
pubGwURLString: 'https://ipfs.io'

0 commit comments

Comments
 (0)