Procházet zdrojové kódy

auto update script executed

Toby Chui před 1 rokem
rodič
revize
10cf5e0993
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      mod/dynamicproxy/dpcore/utils.go

+ 2 - 0
mod/dynamicproxy/dpcore/utils.go

@@ -1,6 +1,7 @@
 package dpcore
 
 import (
+	"fmt"
 	"net/url"
 	"strings"
 )
@@ -26,6 +27,7 @@ func replaceLocationHost(urlString string, rrr *ResponseRewriteRuleSet, useTLS b
 	//Check if it is actually redirecting to example.com instead of a new domain
 	//like news.example.com.
 	if rrr.ProxyDomain != u.Host {
+		fmt.Println(rrr.ProxyDomain, u.Host)
 		//New location domain not matching proxy target domain.
 		//Do not modify location header
 		return urlString, nil