Add host field to local host sessions
authorMatthew Wild <mwild1@gmail.com>
Sat, 8 Nov 2008 20:32:30 +0000 (20:32 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 8 Nov 2008 20:32:30 +0000 (20:32 +0000)
main.lua

index ec883234d53881c8b05f151f08b62c42ec745b0c..eac26fe5fd188a87e79784ed2f7d2c77176d1b31 100644 (file)
--- a/main.lua
+++ b/main.lua
@@ -17,7 +17,7 @@ hosts = {};
 
 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