if config.hosts and #config.hosts > 0 then
for _, host in pairs(config.hosts) do
- hosts[host] = {type = "local", connected = true, sessions = {}};
+ hosts[host] = {type = "local", connected = true, sessions = {}, host = host};
end
else error("No hosts defined in the configuration file"); end