99 -- add to disco_items |
99 -- add to disco_items |
100 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then |
100 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then |
101 disco_items:set(host:sub(host:find(".", 1, true)+1), host, true); |
101 disco_items:set(host:sub(host:find(".", 1, true)+1), host, true); |
102 end |
102 end |
103 modulemanager.load(host, "dialback"); |
103 modulemanager.load(host, "dialback"); |
|
104 modulemanager.load(host, "tls"); |
104 log("debug", "component added: "..host); |
105 log("debug", "component added: "..host); |
105 return session or hosts[host]; |
106 return session or hosts[host]; |
106 else |
107 else |
107 log("error", "Attempt to set component for existing host: "..host); |
108 log("error", "Attempt to set component for existing host: "..host); |
108 end |
109 end |