From eae775bc79c9c2a771212eedcdd7389b993078f0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 4 Feb 2022 20:11:18 +0100 Subject: 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. --- plugins/mod_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_http.lua') diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 9144ff49..a31418cf 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -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); } -- cgit v1.2.3