Mercurial > prosody-hg
comparison core/hostmanager.lua @ 1614:951ed38ad64f
hostmanager: Warn when user puts port configuration under vhost section
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 28 Jul 2009 17:43:46 +0100 |
| parents | 569d58d21612 |
| children | 0033359aeb70 |
comparison
equal
deleted
inserted
replaced
| 1613:ebf0813a81f6 | 1614:951ed38ad64f |
|---|---|
| 39 host = host, s2sout = {}, events = events_new(), | 39 host = host, s2sout = {}, events = events_new(), |
| 40 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") | 40 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") |
| 41 or (configmanager.get(host, "core", "anonymous_login") | 41 or (configmanager.get(host, "core", "anonymous_login") |
| 42 and (configmanager.get(host, "core", "disallow_s2s") ~= false)) | 42 and (configmanager.get(host, "core", "disallow_s2s") ~= false)) |
| 43 }; | 43 }; |
| 44 for option_name in pairs(host_config.core) do | |
| 45 if option_name:match("_ports$") then | |
| 46 log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name); | |
| 47 end | |
| 48 end | |
| 44 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); | 49 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); |
| 45 eventmanager.fire_event("host-activated", host, host_config); | 50 eventmanager.fire_event("host-activated", host, host_config); |
| 46 end | 51 end |
| 47 | 52 |
| 48 function deactivate(host) | 53 function deactivate(host) |
