mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_component: Use typed config API
This commit is contained in:
parent
3431032994
commit
d99378074d
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function module.add_host(module)
|
|||
return true;
|
||||
end
|
||||
|
||||
local secret = module:get_option("component_secret");
|
||||
local secret = module:get_option_string("component_secret");
|
||||
if not secret then
|
||||
(session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host);
|
||||
session:close("not-authorized");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue