25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Do not drop default TLS options

Fixes #1484
This commit is contained in:
Evgeniy Khramtsov 2017-01-26 10:58:26 +03:00
parent c0a89e328a
commit 9d144bd495
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ tls_options(#{lserver := LServer, tls_options := DefaultOpts}) ->
ejabberd_config:get_option(
{domain_certfile, LServer},
fun iolist_to_binary/1)) of
undefined -> [];
undefined -> DefaultOpts;
CertFile -> lists:keystore(certfile, 1, DefaultOpts,
{certfile, CertFile})
end,

View File

@ -204,7 +204,7 @@ tls_options(LServer, DefaultOpts) ->
ejabberd_config:get_option(
{domain_certfile, LServer},
fun iolist_to_binary/1)) of
undefined -> [];
undefined -> DefaultOpts;
CertFile -> lists:keystore(certfile, 1, DefaultOpts,
{certfile, CertFile})
end,