Software /
code /
prosody
Diff
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 |
parent | 1522:569d58d21612 |
child | 1848:0033359aeb70 |
line wrap: on
line diff
--- a/core/hostmanager.lua Tue Jul 28 15:03:42 2009 +0100 +++ b/core/hostmanager.lua Tue Jul 28 17:43:46 2009 +0100 @@ -41,6 +41,11 @@ or (configmanager.get(host, "core", "anonymous_login") and (configmanager.get(host, "core", "disallow_s2s") ~= false)) }; + for option_name in pairs(host_config.core) do + if option_name:match("_ports$") then + log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name); + end + end log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); eventmanager.fire_event("host-activated", host, host_config); end