25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-19 15:32:08 +02:00

Don't use host from url in webadmin, prefer host used for authentication

This commit is contained in:
Paweł Chmielowski 2024-07-03 13:15:33 +02:00
parent 35042ebc6a
commit 54f5db851d

View File

@ -1691,7 +1691,7 @@ make_command2(Name, Request, BaseArguments, Options) ->
CallerInfo =
#{usr => {RUser, RServer, <<"">>},
ip => RIp,
caller_host => RHost,
caller_host => RServer,
caller_module => ?MODULE},
try {ejabberd_commands:get_command_definition(Name),
ejabberd_access_permissions:can_access(Name, CallerInfo)}