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 |