From 53fb520392e2452134cb16cd3ffbd61fc76ef8d5 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 17 Jul 2025 19:12:47 +0300 Subject: [PATCH] Fix to consider `musthost` directive too --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 6a26b6251..c11e2cacb 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -13127,7 +13127,7 @@ else { &get_miniserv_config(\%miniserv); my $proto = $miniserv{'ssl'} ? 'https' : 'http'; my $port = $miniserv{'port'}; - my $host = $forcehost || &get_system_hostname(); + my $host = $forcehost || $miniserv{'musthost'} || &get_system_hostname(); my $defport = $proto eq 'https' ? 443 : 80; $url = $proto."://".$host.($port == $defport ? "" : ":".$port); $url .= $gconfig{'webprefix'} if ($gconfig{'webprefix'});