Mercurial > prosody-hg
comparison main.lua @ 260:182f0c895676
Now outgoing s2s sessions are associated with their from_host, fixes #15
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 14 Nov 2008 02:54:56 +0000 |
| parents | 5dc6ae7b5ce8 |
| children | 8fbfa8f885a6 |
comparison
equal
deleted
inserted
replaced
| 259:1485d272400d | 260:182f0c895676 |
|---|---|
| 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 = {}, host = host}; | 20 hosts[host] = {type = "local", connected = true, sessions = {}, host = host, s2sout = {} }; |
| 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 |
