mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
Fix support for registration from C2S connections
This commit is contained in:
parent
ab77bb5466
commit
6cdfec1284
@ -289,8 +289,8 @@ send_registration_notifications(UJID, Source) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
check_from(JID, Server) ->
|
check_from(JID, Server) ->
|
||||||
case {exmpp_jid:node_as_list(JID), exmpp_jid:prep_domain_as_list(JID)} of
|
case {exmpp_jid:node(JID), exmpp_jid:prep_domain(JID)} of
|
||||||
{"", ""} ->
|
{undefined, undefined} ->
|
||||||
allow;
|
allow;
|
||||||
_ ->
|
_ ->
|
||||||
Access = gen_mod:get_module_opt(Server, ?MODULE, access_from, none),
|
Access = gen_mod:get_module_opt(Server, ?MODULE, access_from, none),
|
||||||
|
Loading…
Reference in New Issue
Block a user