main.lua

changeset 224
4b1e30ddd2bb
parent 218
1263896ab2f1
child 229
01bd24ea488d
equal deleted inserted replaced
223:d5dffc919b33 224:4b1e30ddd2bb
15 sessions = {}; 15 sessions = {};
16 hosts = {}; 16 hosts = {};
17 17
18 if config.hosts and #config.hosts > 0 then 18 if config.hosts and #config.hosts > 0 then
19 for _, host in pairs(config.hosts) do 19 for _, host in pairs(config.hosts) do
20 hosts[host] = {type = "local", connected = true, sessions = {}}; 20 hosts[host] = {type = "local", connected = true, sessions = {}, host = host};
21 end 21 end
22 else error("No hosts defined in the configuration file"); end 22 else error("No hosts defined in the configuration file"); end
23 23
24 -- Load and initialise core modules -- 24 -- Load and initialise core modules --
25 25

mercurial