From 739412119e86aa61f3b0eb4629681971540cf325 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 25 Jun 2010 17:15:28 +0200 Subject: [PATCH] Don't ask for client certificate when using tls (EJAB-1267) --- src/web/ejabberd_http.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ->