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'});