Skip to content

Commit 8b01347

Browse files
fix: linter
1 parent 8ae17ea commit 8b01347

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proxy/proxy.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ func (p *Server) handleConnectionWithTLSDetection(conn net.Conn) {
121121
wrappedConn, isTLS, err := p.isTLSConnection(conn)
122122
if err != nil {
123123
p.logger.Error("Failed to check connection type", "error", err)
124-
conn.Close()
124+
125+
err := conn.Close()
126+
if err != nil {
127+
p.logger.Error("Failed to close connection", "error", err)
128+
}
125129
return
126130
}
127131
if isTLS {

0 commit comments

Comments
 (0)