Skip to content

Commit

Permalink
Ensure sslmode=disable is respected
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha authored and will committed May 12, 2023
1 parent cafe599 commit 53f6586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pq/connection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module PQ
end

@soc = soc
negotiate_ssl if @soc.is_a?(TCPSocket)
negotiate_ssl if @soc.is_a?(TCPSocket) && @conninfo.sslmode != :disable
end

private def negotiate_ssl
Expand Down

0 comments on commit 53f6586

Please sign in to comment.