25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix ACME options validation

This commit is contained in:
Evgeniy Khramtsov 2017-11-17 15:55:33 +03:00
parent b2680a776b
commit f599c2ef82

View File

@ -1211,11 +1211,11 @@ opt_type(acme) ->
fun({ca_url, URL}) ->
URL1 = binary_to_list(URL),
{ok, _} = http_uri:parse(URL1),
URL1;
{ca_url, URL1};
({contact, Contact}) ->
[<<_, _/binary>>, <<_, _/binary>>] =
binary:split(Contact, <<":">>),
Contact
{contact, Contact}
end, L)
end;
opt_type(_) ->