From c856731cec14246b1ced594627daa5c50a2959cd Mon Sep 17 00:00:00 2001 From: Roy Li Date: Sun, 29 Dec 2019 14:48:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E4=BB=8E=20Clash=20?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E4=B8=AD=E8=AF=BB=E5=8F=96=20skipCertVerify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/provider/ClashProvider.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/provider/ClashProvider.ts b/lib/provider/ClashProvider.ts index d2df11097..458ab8201 100644 --- a/lib/provider/ClashProvider.ts +++ b/lib/provider/ClashProvider.ts @@ -116,6 +116,7 @@ async function requestConfigFromRemote(url: string, udpRelay?: boolean): Promise obfs: item['plugin-opts'].tls === true ? 'wss' : 'ws', 'obfs-host': item['plugin-opts'].host || item.server, 'obfs-uri': item['plugin-opts'].path || '/', + skipCertVerify: item['plugin-opts']['skip-cert-verify'] === true, } : null), }; @@ -142,6 +143,7 @@ async function requestConfigFromRemote(url: string, udpRelay?: boolean): Promise path: _.get(item, 'ws-path', '/'), host: _.get(item, 'ws-headers.Host', ''), } : null), + skipCertVerify: item['skip-cert-verify'] === true, }; case 'http': @@ -158,6 +160,7 @@ async function requestConfigFromRemote(url: string, udpRelay?: boolean): Promise port: item.port, username: item.username || '', password: item.password || '', + skipCertVerify: item['skip-cert-verify'] === true, }; case 'snell':