mod_component: Use typed config API
authorKim Alvefur <zash@zash.se>
Wed, 26 Apr 2017 16:54:58 +0200
changeset 8137 b87e281a7d59
parent 8135 6ddddfe05a74
child 8138 e20c27e04ecc
mod_component: Use typed config API
plugins/mod_component.lua
--- a/plugins/mod_component.lua	Wed Apr 26 11:46:22 2017 +0200
+++ b/plugins/mod_component.lua	Wed Apr 26 16:54:58 2017 +0200
@@ -66,7 +66,7 @@
 			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");