File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ func (p *Server) isTLSConnection(conn net.Conn) (net.Conn, bool) {
147147 isTLS := buf [0 ] == 0x16 || buf [0 ] == 0x17 || buf [0 ] == 0x14 || buf [0 ] == 0x15
148148
149149 if isTLS {
150- p .logger .Info ("TLS detected: first byte = 0x%02x " , buf [0 ])
150+ p .logger .Info ("TLS detected" , " first byte" , buf [0 ])
151151 }
152152
153153 return connWrapper , isTLS
@@ -169,8 +169,8 @@ func (p *Server) handleHTTPConnection(conn net.Conn) {
169169 }
170170
171171 p .logger .Info ("🌐 HTTP Request: %s %s" , req .Method , req .URL .String ())
172- p .logger .Info (" Host: %s " , req .Host )
173- p .logger .Info (" User-Agent: %s " , req .Header .Get ("User-Agent" ))
172+ p .logger .Info (" Host" , "host " , req .Host )
173+ p .logger .Info (" User-Agent" , "user-agent " , req .Header .Get ("User-Agent" ))
174174
175175 // Check if request should be allowed
176176 result := p .ruleEngine .Evaluate (req .Method , req .Host )
You can’t perform that action at this time.
0 commit comments