diff --git a/src/handler/proxyhandler.go b/src/handler/proxyhandler.go index aa07b99aabc010dcc8e07e8563f20ee16314ca32..4616dc65dfebe0a93bf688f9f98851ff96af520a 100644 --- a/src/handler/proxyhandler.go +++ b/src/handler/proxyhandler.go @@ -46,7 +46,9 @@ func Proxy(c *gin.Context) { c.JSON(200, res) return } - f, _ := forward.New(forward.PassHostHeader(true), forward.WebsocketTLSClientConfig(&tls.Config{InsecureSkipVerify: true}), forward.ResponseModifier(func(resp *http.Response) error { + roundTripper := http.DefaultTransport.(*http.Transport) + roundTripper.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} + f, _ := forward.New(forward.PassHostHeader(true), forward.RoundTripper(roundTripper), forward.ResponseModifier(func(resp *http.Response) error { //Resp = resp //判断是否超过调用次数是否可以调用 callflag, sensitiveflag, err := service.QueryCallsCount(proxyData)