mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
hostmanager: activate() now gets the host config from configmanager when a config isn't given.
This commit is contained in:
parent
e3a8fa54c0
commit
e8fa3940a7
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ prosody_events.add_handler("server-starting", load_enabled_hosts);
|
|||
|
||||
function activate(host, host_config)
|
||||
if hosts[host] then return nil, "host-already-exists"; end
|
||||
host_config = host_config or configmanager.getconfig()[host];
|
||||
local host_session = {
|
||||
host = host;
|
||||
s2sout = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue