mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
Merge 0.10->trunk
This commit is contained in:
commit
9b9d6a9ba9
8 changed files with 25 additions and 14 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