diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-28 18:02:11 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-28 18:02:11 +0100 |
commit | 57f4a5c837c5039eee6edd83d9516bca9a82c9d0 (patch) | |
tree | c1d7a244bc4f0ed138aa3ed34151c81146b5844d | |
parent | hostmanager: Warn when user puts port configuration under vhost section (diff) | |
download | prosody-57f4a5c837c5039eee6edd83d9516bca9a82c9d0.tar.xz prosody-57f4a5c837c5039eee6edd83d9516bca9a82c9d0.zip |
configmanager: Default options appearing before Host "*" to global (fixes potential traceback)
-rw-r--r-- | core/configmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua index 7fc6aa134..b7ee605fc 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -113,6 +113,7 @@ do set(env.__currenthost or "*", "core", k, v); end}); + rawset(env, "__currenthost", "*") -- Default is global function env.Host(name) rawset(env, "__currenthost", name); -- Needs at least one setting to logically exist :) |