From 93af0c9c70e03947126076ea8d9bd84e2f489f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Tue, 4 Mar 2025 02:14:59 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E4=BC=98=E5=8C=96DNS=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=87=AA=E5=8A=A8=E8=A7=A3=E6=9E=90=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=AB=20`http://xxx`=20?= =?UTF-8?q?=E4=B8=BA=20`https`=20=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/lib/dns/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mitmproxy/src/lib/dns/index.js b/packages/mitmproxy/src/lib/dns/index.js index b285a9f..5244f26 100644 --- a/packages/mitmproxy/src/lib/dns/index.js +++ b/packages/mitmproxy/src/lib/dns/index.js @@ -23,7 +23,7 @@ module.exports = { // 获取DNS类型 if (conf.type == null) { - if (server.startsWith('https://')) { + if (server.startsWith('https://') || server.startsWith('http://')) { conf.type = 'https' } else if (server.startsWith('tls://')) { conf.type = 'tls'