Comparison

main.lua @ 224:4b1e30ddd2bb

Add host field to local host sessions
author Matthew Wild <mwild1@gmail.com>
date Sat, 08 Nov 2008 20:32:30 +0000
parent 218:1263896ab2f1
child 229:01bd24ea488d
comparison
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