Skip to content

Commit

Permalink
Merge pull request #123 from qzhuyan/fix/william/etcd-ssl-enable-check
Browse files Browse the repository at this point in the history
fix(etcd): check ssl enable
  • Loading branch information
qzhuyan authored Sep 16, 2021
2 parents 80e7439 + 48074f9 commit 0f41759
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ekka_cluster_etcd.erl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ server(Options) ->
ssl_options(Options) ->
case proplists:get_value(ssl_options, Options, []) of
[] -> [];
SSLOptions -> [{ssl, SSLOptions}]
SSLOptions ->
case proplists:get_value(enable, SSLOptions, true) of
true -> [{ssl, proplists:delete(enable, SSLOptions)}];
false -> []
end
end.

config(Key, Options) ->
Expand Down

0 comments on commit 0f41759

Please sign in to comment.