24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02: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}) -> fun({ca_url, URL}) ->
URL1 = binary_to_list(URL), URL1 = binary_to_list(URL),
{ok, _} = http_uri:parse(URL1), {ok, _} = http_uri:parse(URL1),
URL1; {ca_url, URL1};
({contact, Contact}) -> ({contact, Contact}) ->
[<<_, _/binary>>, <<_, _/binary>>] = [<<_, _/binary>>, <<_, _/binary>>] =
binary:split(Contact, <<":">>), binary:split(Contact, <<":">>),
Contact {contact, Contact}
end, L) end, L)
end; end;
opt_type(_) -> opt_type(_) ->