Update mod_rest to work with recent ejabberd's jid instead of jlib (#257)
This commit is contained in:
parent
f20d6239db
commit
b130567e16
|
@ -120,7 +120,7 @@ get_option_access(Host) ->
|
|||
%% This function crashes if the stanza does not satisfy configured restrictions
|
||||
check_stanza(Pkt, Host) ->
|
||||
To = xmpp:get_to(Pkt),
|
||||
check_member_option(Host, jlib:jid_to_string(To), allowed_destinations),
|
||||
check_member_option(Host, jid:encode(To), allowed_destinations),
|
||||
%%+++ {xmlel, StanzaType, _Attrs, _Kids} = Stanza,
|
||||
%%+++ check_member_option(Host, StanzaType, allowed_stanza_types),
|
||||
allowed.
|
||||
|
|
Loading…
Reference in New Issue