Skip to content

Commit

Permalink
Fix error when TLS is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Dec 29, 2023
1 parent 0868d35 commit fa0db19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (pr *Proxy) PassThroughToServer(conn *ConnWrapper, stack *Stack) *gerr.Gate
// so we need to switch to a plaintext connection:
// https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-SSL
if _, err := conn.Write([]byte{'N'}); err != nil {
pr.logger.Error().Err(err).Msg("Server does not support SSL, but SSL was required by the client")
pr.logger.Warn().Err(err).Msg("Server does not support SSL, but SSL was required by the client")
span.RecordError(err)
}

Expand Down

0 comments on commit fa0db19

Please sign in to comment.