projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net.httpserver: Allow overriding default request handler
[prosody.git]
/
core
/
configmanager.lua
diff --git
a/core/configmanager.lua
b/core/configmanager.lua
index 7fc6aa134be12d73d16fabd223695995501a52f5..b7ee605fcdb5bfb1cb6328eab5c7aa51b592b7aa 100644
(file)
--- 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 :)