25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Log TLS status for outgoing s2s with SASL EXTERNAL

This commit is contained in:
Holger Weiss 2014-04-23 23:28:13 +02:00
parent 3a3f8240c1
commit f988aad940

View File

@ -570,8 +570,10 @@ wait_for_features({xmlstreamelement, El}, StateData) ->
if not SASLEXT and not StartTLS and if not SASLEXT and not StartTLS and
StateData#state.authenticated -> StateData#state.authenticated ->
send_queue(StateData, StateData#state.queue), send_queue(StateData, StateData#state.queue),
?INFO_MSG("Connection established: ~s -> ~s", ?INFO_MSG("Connection established: ~s -> ~s with "
[StateData#state.myname, StateData#state.server]), "SASL EXTERNAL and TLS=~p",
[StateData#state.myname, StateData#state.server,
StateData#state.tls_enabled]),
ejabberd_hooks:run(s2s_connect_hook, ejabberd_hooks:run(s2s_connect_hook,
[StateData#state.myname, [StateData#state.myname,
StateData#state.server]), StateData#state.server]),