1
0
Эх сурвалжийг харах

auto update script executed

Toby Chui 2 жил өмнө
parent
commit
372dae026a

+ 1 - 1
mod/dynamicproxy/dpcore/dpcore.go

@@ -354,7 +354,7 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 			//Full path
 			//Replace the forwarded target with expected Host
 			fmt.Println(rrr.ProxyDomain, domainWithoutPort, rrr.OriginalHost)
-			lr, err := replaceLocationHost(locationRewrite, rrr.OriginalHost, rrr.UseTLS)
+			lr, err := replaceLocationHost(locationRewrite, rrr.OriginalHost, req.TLS == nil)
 			if err == nil {
 				locationRewrite = lr
 			}