aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r--plugins/mod_component.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 03331743..7c7e58c4 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -31,9 +31,9 @@ function handle_component_auth(session, stanza)
return;
end
- local secret = config.get(session.user, "core", "component_secret");
+ local secret = config.get(session.host, "core", "component_secret");
if not secret then
- (session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.user);
+ (session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host);
session:close("not-authorized");
return;
end