From eba9d48af2aaf8a7ef60ccbdedc1864cbd5ff992 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 4 Nov 2020 03:04:22 +0100 Subject: [PATCH] Apply generateProxyURL to DNS service provider --- src/serviceproviders/dns.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serviceproviders/dns.js b/src/serviceproviders/dns.js index dfc7a47..bddc5f1 100644 --- a/src/serviceproviders/dns.js +++ b/src/serviceproviders/dns.js @@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +const utils = require('../utils') const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/ const processURI = (uri, opts) => { @@ -29,7 +30,7 @@ const processURI = (uri, opts) => { uri: `https://${match[1]}` }, proof: { - uri: `https://proxy.keyoxide.org/api/1/get/dns/${match[1]}`, + uri: utils.generateProxyURL('dns', match[1]), fetch: null, useProxy: false, format: 'json'