fixup! feat(docker): use docker label as primary source for WebUI

This commit is contained in:
Arif Er
2022-06-24 16:00:51 +08:00
parent 5c81ad9d82
commit b88df02414
@@ -307,7 +307,7 @@ class DockerTemplates {
}
if ($ct['Running']) {
$port = &$ct['Ports'][0];
$webui = $this->getTemplateValue($ct['Image'], 'WebUI');
$webui = $tmp['url'] ?: $this->getTemplateValue($ct['Image'], 'WebUI');
if (strlen($webui) > 0 && !preg_match("%\[(IP|PORT:(\d+))\]%", $webui)) {
// non-templated webui, user specified
$tmp['url'] = $webui;