diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index a0cf1a732..141db34bf 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -324,8 +324,8 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) -> _ -> false end, + AllowRemoteHost = ejabberd_s2s:allow_host("", AuthDomain), if - AllowRemoteHost = ejabberd_s2s:allow_host("", AuthDomain), AuthRes andalso AllowRemoteHost -> (StateData#state.sockmod):reset_stream( StateData#state.socket),