From: Pablo Polvorin Date: Thu, 1 Dec 2011 15:55:20 +0000 (-0300) Subject: Fix bug on s2s shaper when TLS is used X-Git-Tag: v3.0.0-alpha-5~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=089331caf0624c98aae990f51150027bf6c57a99;p=ejabberd Fix bug on s2s shaper when TLS is used The shaper was not enabled if the remote server authenticates using a certificate instead of dialback. --- diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index 7389f5958..367bce502 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -330,6 +330,11 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) -> exmpp_server_sasl:success()), ?DEBUG("(~w) Accepted s2s authentication for ~s", [StateData#state.socket, AuthDomain]), + %% acess rules are first checked against the globally defined ones, that have precedence over + %% domain-specific ones.. http://www.process-one.net/docs/ejabberd/guide_en.html#AccessRights + %% since there is allways a shaper defined globally for s2s, it doesn't matter the actual + %% local host, since the globall one will be used, even if this domain has a special rule + change_shaper(StateData, "", exmpp_jid:make(AuthDomain)), {next_state, wait_for_stream, StateData#state{streamid = new_id(), authenticated = true,