mirror of
				https://github.com/tobychui/zoraxy.git
				synced 2025-10-31 14:04:13 +01:00 
			
		
		
		
	Update Server.go
Fixed default site bypassing access filter bug
This commit is contained in:
		| @@ -102,6 +102,13 @@ func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { | ||||
| 	/* | ||||
| 		Root Router Handling | ||||
| 	*/ | ||||
|  | ||||
| 	//Root access control based on default rule | ||||
| 	blocked := h.handleAccessRouting("default", w, r) | ||||
| 	if blocked { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	//Clean up the request URI | ||||
| 	proxyingPath := strings.TrimSpace(r.RequestURI) | ||||
| 	if !strings.HasSuffix(proxyingPath, "/") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Toby Chui
					Toby Chui