25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-02 16:37:52 +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.
-spec s2s_out_tls_verify(boolean(), ejabberd_s2s_out:state()) -> boolean().
s2s_out_tls_verify(_, #{server := LServer, remote_server := RServer}) ->
Access = mod_s2s_dialback_opt:access(LServer),
case acl:match_rule(LServer, Access, jid:make(RServer)) of
s2s_out_tls_verify(_, #{server_host := ServerHost, remote_server := RServer}) ->
Access = mod_s2s_dialback_opt:access(ServerHost),
case acl:match_rule(ServerHost, Access, jid:make(RServer)) of
allow -> false;
deny -> true
end.