Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
26a312d2d4
2 changed files with 2 additions and 4 deletions
  1. 0 2
      mod/dynamicproxy/Server.go
  2. 2 2
      start.go

+ 0 - 2
mod/dynamicproxy/Server.go

@@ -1,7 +1,6 @@
 package dynamicproxy
 
 import (
-	"fmt"
 	"net/http"
 	"os"
 	"strings"
@@ -116,7 +115,6 @@ func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		h.proxyRequest(w, r, targetProxyEndpoint)
 	} else if !strings.HasSuffix(proxyingPath, "/") {
 		potentialProxtEndpoint := h.Parent.getTargetProxyEndpointFromRequestURI(proxyingPath + "/")
-		fmt.Println(strings.HasSuffix(proxyingPath, "/"))
 		if potentialProxtEndpoint != nil {
 			//Missing tailing slash. Redirect to target proxy endpoint
 			http.Redirect(w, r, r.RequestURI+"/", http.StatusTemporaryRedirect)

+ 2 - 2
start.go

@@ -15,7 +15,7 @@ import (
 	"imuslab.com/zoraxy/mod/geodb"
 	"imuslab.com/zoraxy/mod/mdns"
 	"imuslab.com/zoraxy/mod/netstat"
-	"imuslab.com/zoraxy/mod/pathblock"
+	"imuslab.com/zoraxy/mod/pathrule"
 	"imuslab.com/zoraxy/mod/sshprox"
 	"imuslab.com/zoraxy/mod/statistic"
 	"imuslab.com/zoraxy/mod/statistic/analytic"
@@ -101,7 +101,7 @@ func startupSequence() {
 		from file.
 	*/
 
-	pathBlockHandler = pathblock.NewPathBlocker(&pathblock.Options{
+	pathRuleHandler = pathrule.NewPathBlocker(&pathrule.Options{
 		ConfigFolder: "./rules/pathblock",
 	})