mod_tls: Updated to use module:get_option instead of configmanager
[prosody.git] / plugins / mod_tls.lua
index 8926edfc33293fa295fc790c2e4079f21979cc89..158285f61bc275630fa53013b0e4f87a2707ec87 100644 (file)
@@ -6,14 +6,11 @@
 -- COPYING file in the source package for more information.
 --
 
-
-
 local st = require "util.stanza";
 
 local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls';
 
-local config = require "core.configmanager";
-local secure_auth_only = config.get("*", "core", "require_encryption");
+local secure_auth_only = module:get_option("require_encryption");
 
 module:add_handler("c2s_unauthed", "starttls", xmlns_starttls,
                function (session, stanza)