diff --git a/src/web/ejabberd_http.erl b/src/web/ejabberd_http.erl index bdde5926e..5bb8f3273 100644 --- a/src/web/ejabberd_http.erl +++ b/src/web/ejabberd_http.erl @@ -91,9 +91,10 @@ start_link(SockData, Opts) -> init({SockMod, Socket}, Opts) -> TLSEnabled = lists:member(tls, Opts), - TLSOpts = lists:filter(fun({certfile, _}) -> true; + TLSOpts1 = lists:filter(fun({certfile, _}) -> true; (_) -> false end, Opts), + TLSOpts = [verify_none | TLSOpts1], {SockMod1, Socket1} = if TLSEnabled ->