# HG changeset patch # User Matthew Wild # Date 1248799426 -3600 # Node ID 951ed38ad64fe457c32382684cd23673735342ab # Parent ebf0813a81f6e50911c371463c4b5db0c2933c5b hostmanager: Warn when user puts port configuration under vhost section diff -r ebf0813a81f6 -r 951ed38ad64f core/hostmanager.lua --- 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