From cb08ea20cd223f392e8f41bade20fea672cdf7ea Mon Sep 17 00:00:00 2001 From: Daniel Ding Date: Wed, 24 Jan 2024 20:16:50 +0800 Subject: [PATCH] fix: skip verify connect to https --- pkg/proxy/http.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/proxy/http.go b/pkg/proxy/http.go index 73c12f4..bd5f570 100755 --- a/pkg/proxy/http.go +++ b/pkg/proxy/http.go @@ -163,7 +163,10 @@ func (t *HttpProxy) tunnel(w http.ResponseWriter, conn net.Conn) { func (t *HttpProxy) openConn(remote string) (net.Conn, error) { if strings.HasPrefix(remote, "https://") { - return tls.Dial("tcp", remote[8:], nil) + conf := &tls.Config{ + InsecureSkipVerify: true, + } + return tls.Dial("tcp", remote[8:], conf) } else if strings.HasPrefix(remote, "http://") { remote = remote[7:] }