Software /
code /
prosody
Comparison
core/hostmanager.lua @ 6299:a1da78658a82
hostmanager, mod_dialback: Move generation of dialback secret out of core
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 May 2014 15:21:22 +0200 |
parent | 5776:bd0ff8ae98a8 |
child | 6430:ceaf2a0d05eb |
child | 6548:a10c9d6825a4 |
comparison
equal
deleted
inserted
replaced
6298:6ddd7913913b | 6299:a1da78658a82 |
---|---|
72 if not host_config then return nil, "Couldn't find the host "..tostring(host).." defined in the current config"; end | 72 if not host_config then return nil, "Couldn't find the host "..tostring(host).." defined in the current config"; end |
73 local host_session = { | 73 local host_session = { |
74 host = host; | 74 host = host; |
75 s2sout = {}; | 75 s2sout = {}; |
76 events = events_new(); | 76 events = events_new(); |
77 dialback_secret = configmanager.get(host, "dialback_secret") or uuid_gen(); | |
78 send = host_send; | 77 send = host_send; |
79 modules = {}; | 78 modules = {}; |
80 }; | 79 }; |
81 if not host_config.component_module then -- host | 80 if not host_config.component_module then -- host |
82 host_session.type = "local"; | 81 host_session.type = "local"; |