mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_http: Use interface name as default default global hostname
http://[::]:5280/ is as sensible as http://*:5280/ so why not This might be a bit weird when listening no multiple interfaces but not sure we can really do anything sensible then anyway.
This commit is contained in:
parent
35e77293c0
commit
eae775bc79
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ function moduleapi.http_url(module, app_name, default_path)
|
|||
local url = {
|
||||
scheme = service[1].service.name;
|
||||
host = module:get_option_string("http_host", module.global
|
||||
and module:get_option_string("http_default_host") or module.host);
|
||||
and module:get_option_string("http_default_host", interface) or module.host);
|
||||
port = port;
|
||||
path = get_base_path(module, app_name, default_path or "/" .. app_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue