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

Use correct virtual host

This commit is contained in:
Evgeny Khramtsov 2019-07-03 19:08:38 +03:00
parent 8180bc22ee
commit 0d0ad9d1d9

View File

@ -255,9 +255,9 @@ s2s_out_packet(State, _) ->
State. State.
-spec s2s_out_tls_verify(boolean(), ejabberd_s2s_out:state()) -> boolean(). -spec s2s_out_tls_verify(boolean(), ejabberd_s2s_out:state()) -> boolean().
s2s_out_tls_verify(_, #{server := LServer, remote_server := RServer}) -> s2s_out_tls_verify(_, #{server_host := ServerHost, remote_server := RServer}) ->
Access = mod_s2s_dialback_opt:access(LServer), Access = mod_s2s_dialback_opt:access(ServerHost),
case acl:match_rule(LServer, Access, jid:make(RServer)) of case acl:match_rule(ServerHost, Access, jid:make(RServer)) of
allow -> false; allow -> false;
deny -> true deny -> true
end. end.