Software /
code /
prosody
Comparison
util/openssl.lua @ 5379:27de7cc94111
util.{prosodyctl,openssl}: More use of config sections removed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 02:38:30 +0100 |
parent | 5290:befb1923527d |
child | 5544:d911d9fb3929 |
comparison
equal
deleted
inserted
replaced
5378:ec3accda44d3 | 5379:27de7cc94111 |
---|---|
98 local certhost = certhosts[i]; | 98 local certhost = certhosts[i]; |
99 for name in pairs(hosts) do | 99 for name in pairs(hosts) do |
100 if name == certhost or name:sub(-1-#certhost) == "."..certhost then | 100 if name == certhost or name:sub(-1-#certhost) == "."..certhost then |
101 found_matching_hosts = true; | 101 found_matching_hosts = true; |
102 self:add_dNSName(name); | 102 self:add_dNSName(name); |
103 --print(name .. "#component_module: " .. (config.get(name, "core", "component_module") or "nil")); | 103 --print(name .. "#component_module: " .. (config.get(name, "component_module") or "nil")); |
104 if config.get(name, "core", "component_module") == nil then | 104 if config.get(name, "component_module") == nil then |
105 self:add_sRVName(name, "xmpp-client"); | 105 self:add_sRVName(name, "xmpp-client"); |
106 end | 106 end |
107 --print(name .. "#anonymous_login: " .. tostring(config.get(name, "core", "anonymous_login"))); | 107 --print(name .. "#anonymous_login: " .. tostring(config.get(name, "anonymous_login"))); |
108 if not (config.get(name, "core", "anonymous_login") or | 108 if not (config.get(name, "anonymous_login") or |
109 config.get(name, "core", "authentication") == "anonymous") then | 109 config.get(name, "authentication") == "anonymous") then |
110 self:add_sRVName(name, "xmpp-server"); | 110 self:add_sRVName(name, "xmpp-server"); |
111 end | 111 end |
112 self:add_xmppAddr(name); | 112 self:add_xmppAddr(name); |
113 end | 113 end |
114 end | 114 end |