From f18894f3c78e751d92cab05ff04d22b2814d5a0c Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 10 Dec 2019 18:57:03 +0100 Subject: [PATCH] refactor: restore dnslink redirect to local gateway --- add-on/src/lib/options.js | 2 +- test/functional/lib/ipfs-request-dnslink.test.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/add-on/src/lib/options.js b/add-on/src/lib/options.js index 0805f39bf..e747b5065 100644 --- a/add-on/src/lib/options.js +++ b/add-on/src/lib/options.js @@ -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, diff --git a/test/functional/lib/ipfs-request-dnslink.test.js b/test/functional/lib/ipfs-request-dnslink.test.js index 54d76f5cc..1a5c5c37e 100644 --- a/test/functional/lib/ipfs-request-dnslink.test.js +++ b/test/functional/lib/ipfs-request-dnslink.test.js @@ -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'