Software /
code /
prosody
Diff
plugins/mod_http.lua @ 5180:4ef69555a879
mod_http: Add 'http_host' option to change the HTTP virtual host that this host is accessible at (e.g. allows mapping a host to '127.0.0.1')
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Nov 2012 13:24:10 -0500 |
parent | 5120:bcabea740c00 |
child | 5183:8461e8ed7c09 |
line wrap: on
line diff
--- a/plugins/mod_http.lua Thu Nov 15 13:18:41 2012 -0500 +++ b/plugins/mod_http.lua Thu Nov 15 13:24:10 2012 -0500 @@ -67,7 +67,7 @@ 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)