aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-11-22 20:42:12 +0100
committerKim Alvefur <zash@zash.se>2012-11-22 20:42:12 +0100
commitc553fc1fb36f93be9c10d2dc24a54b6fc14e2db6 (patch)
treecf80e927bc69438c73a067e6ccfa839a4e885a94
parent2cb192af38cad5e903bdd9a1f356a0ea01513de5 (diff)
parent67144d911b344344f47991f19bd6a344cb5acdd3 (diff)
downloadprosody-c553fc1fb36f93be9c10d2dc24a54b6fc14e2db6.tar.gz
prosody-c553fc1fb36f93be9c10d2dc24a54b6fc14e2db6.zip
Merge 0.9->trunk
-rw-r--r--plugins/mod_http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 4f09716c..f386f870 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -55,7 +55,7 @@ function moduleapi.http_url(module, app_name, default_path)
for port, services in pairs(ports) do
local url = {
scheme = (external_url.scheme or services[1].service.name);
- host = (external_url.host or module.host);
+ host = (external_url.host or module:get_option_string("http_host", module.host));
port = tonumber(external_url.port) or port or 80;
path = normalize_path(external_url.path or "/")..
(get_base_path(module, app_name, default_path or "/"..app_name):sub(2));