From 9238c028748620ce2cc487262306d8711fc98650 Mon Sep 17 00:00:00 2001 From: lubyruffy Date: Fri, 14 Oct 2022 15:38:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A5=94=E6=BA=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/check.go b/api/check.go index 7e7dac5..b0d2590 100644 --- a/api/check.go +++ b/api/check.go @@ -209,7 +209,7 @@ func checkHost(host string) *proxyResult { return checkProtocolHost("http", host+":80") } if strings.Contains(host, "443") { - if p := checkProtocolHost("https", host); p.Valid { + if p := checkProtocolHost("https", host); p != nil && p.Valid { return p } } else {