From 34cf20f3a8d47e8da163e9ca0ba049cba7ea0db2 Mon Sep 17 00:00:00 2001 From: YEVHENII SHCHERBINA Date: Tue, 2 Dec 2025 15:08:57 +0000 Subject: [PATCH] fix: path-related bug in rules engine --- proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 9d9707d..bd9d074 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -223,7 +223,7 @@ func (p *Server) handleHTTPConnection(conn net.Conn) { p.logger.Debug(" User-Agent", "user-agent", req.Header.Get("User-Agent")) // Check if request should be allowed - result := p.ruleEngine.Evaluate(req.Method, req.Host) + result := p.ruleEngine.Evaluate(req.Method, req.Host+req.URL.String()) // Audit the request p.auditor.AuditRequest(audit.Request{ @@ -274,7 +274,7 @@ func (p *Server) handleTLSConnection(conn net.Conn) { p.logger.Debug(" User-Agent", "user-agent", req.Header.Get("User-Agent")) // Check if request should be allowed - result := p.ruleEngine.Evaluate(req.Method, req.Host) + result := p.ruleEngine.Evaluate(req.Method, req.Host+req.URL.String()) // Audit the request p.auditor.AuditRequest(audit.Request{