aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-11-15 14:07:53 -0500
committerMatthew Wild <mwild1@gmail.com>2012-11-15 14:07:53 -0500
commit1862c03a88a5fee03460dae23eb958eaa4d31580 (patch)
treeb4f61532023b0ef12dadab99cc45df9e12a7502e /plugins
parent20b97c9c9372fd03f9665669399065869eec0bce (diff)
parentbaa85ada77e54389fc446cbc2343f70b11613b7c (diff)
downloadprosody-1862c03a88a5fee03460dae23eb958eaa4d31580.tar.gz
prosody-1862c03a88a5fee03460dae23eb958eaa4d31580.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua4
-rw-r--r--plugins/mod_http.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 350d6b0c..1270a080 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -70,8 +70,8 @@ end
local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
local os_time = os.time;
-local sessions = {};
-local inactive_sessions = {}; -- Sessions which have no open requests
+-- All sessions, and sessions that have no requests open
+local sessions, inactive_sessions = module:shared("sessions", "inactive_sessions");
-- Used to respond to idle sessions (those with waiting requests)
local waiting_requests = {};
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 22441faa..a7b4a45f 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -67,7 +67,7 @@ function moduleapi.http_url(module, app_name, default_path)
end
function module.add_host(module)
- local host = module.host;
+ local host = module:get_option_string("http_host", module.host);
local apps = {};
module.environment.apps = apps;
local function http_app_added(event)