diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-08 08:27:54 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-08 08:27:54 +0300 |
commit | dd11ed82d7a0f2a8d8e29d6a07843358e7f347ff (patch) | |
tree | baf6989a251c997d19c443e651a352c8453c2182 /src/ejabberd_s2s_in.erl | |
parent | Fix typo and spec (diff) |
Report more TLS errors
Diffstat (limited to 'src/ejabberd_s2s_in.erl')
-rw-r--r-- | src/ejabberd_s2s_in.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index 1cddfec6..1a25ee7b 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -288,8 +288,7 @@ handle_info(Info, #{server_host := LServer} = State) -> terminate(Reason, #{auth_domains := AuthDomains, sockmod := SockMod, socket := Socket} = State) -> case maps:get(stop_reason, State, undefined) of - {tls, no_certfile} = Err -> - %% TODO: we probably need to report more TLS errors here + {tls, _} = Err -> ?ERROR_MSG("(~s) Failed to secure inbound s2s connection: ~s", [SockMod:pp(Socket), xmpp_stream_in:format_error(Err)]); _ -> |