File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ func (p *Server) handleHTTPConnection(conn net.Conn) {
177177 result := p .ruleEngine .Evaluate (req .Method , req .Host )
178178
179179 // Audit the request
180- // p.auditor.AuditRequest(audit.Request{
181- // Method: req.Method,
182- // URL: req.URL.String(),
183- // Allowed: result.Allowed,
184- // Rule: result.Rule,
185- // })
180+ p .auditor .AuditRequest (audit.Request {
181+ Method : req .Method ,
182+ URL : req .URL .String (),
183+ Allowed : result .Allowed ,
184+ Rule : result .Rule ,
185+ })
186186
187187 if ! result .Allowed {
188188 p .writeBlockedResponse (conn , req )
@@ -227,12 +227,12 @@ func (p *Server) handleTLSConnection(conn net.Conn) {
227227 result := p .ruleEngine .Evaluate (req .Method , req .Host )
228228
229229 // Audit the request
230- // p.auditor.AuditRequest(audit.Request{
231- // Method: req.Method,
232- // URL: req.URL.String(),
233- // Allowed: result.Allowed,
234- // Rule: result.Rule,
235- // })
230+ p .auditor .AuditRequest (audit.Request {
231+ Method : req .Method ,
232+ URL : req .URL .String (),
233+ Allowed : result .Allowed ,
234+ Rule : result .Rule ,
235+ })
236236
237237 if ! result .Allowed {
238238 p .writeBlockedResponse (tlsConn , req )
You can’t perform that action at this time.
0 commit comments