From feedb786a5fca25491d3d5bb3856869b62f3c353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Sat, 14 Sep 2024 18:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js b/packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js index c57a9ac..b93ee75 100644 --- a/packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js +++ b/packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js @@ -12,7 +12,7 @@ module.exports = { const aliveIpObj = tester.pickFastAliveIpObj() if (aliveIpObj) { log.info(`----- ${action}: ${hostname}, use alive ip from dns '${aliveIpObj.dns}': ${aliveIpObj.host}${target} -----`) - if (res) res.setHeader('DS-DNS-Lookup', `IpTester: ${aliveIpObj.host}(${aliveIpObj.dns})`) + if (res) res.setHeader('DS-DNS-Lookup', `"IpTester: ${aliveIpObj.host}(${aliveIpObj.dns})"`) callback(null, aliveIpObj.host, 4) return } else { @@ -42,7 +42,7 @@ module.exports = { } if (isTestFailedIp === false) { log.info(`----- ${action}: ${hostname}, use ip from dns '${dns.name}': ${ip}${target} -----`) - if (res) res.setHeader('DS-DNS-Lookup', `DNS: ${ip.host}(${dns.name})`) + if (res) res.setHeader('DS-DNS-Lookup', `"DNS: ${ip}(${dns.name})"`) callback(null, ip, 4) return } else {