mod_component: Use typed config API

This commit is contained in:
Kim Alvefur 2017-04-26 16:54:58 +02:00
parent 3431032994
commit d99378074d

View file

@ -66,7 +66,7 @@ function module.add_host(module)
return true; return true;
end end
local secret = module:get_option("component_secret"); local secret = module:get_option_string("component_secret");
if not secret then if not secret then
(session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host); (session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host);
session:close("not-authorized"); session:close("not-authorized");