Skip to content

Commit 567ea8a

Browse files
authored
Fix ssl: true with missing ssl_opts handling (#749)
1 parent 0eb228f commit 567ea8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/postgrex/protocol.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ defmodule Postgrex.Protocol do
9494

9595
{true, opts} ->
9696
case Keyword.pop(opts, :ssl_opts) do
97-
{nil, _opts} ->
98-
[cacerts: :public_key.cacerts_get()] ++ default_ssl_opts()
97+
{nil, opts} ->
98+
{[cacerts: :public_key.cacerts_get()] ++ default_ssl_opts(), opts}
9999

100100
{ssl_opts, opts} ->
101101
Logger.warning(":ssl_opts is deprecated, pass opts to :ssl instead")

0 commit comments

Comments
 (0)