luci-app-smartdns: Service redirect status is not displayed when smartdns is disabled

This commit is contained in:
Nick Peng
2020-02-16 14:48:50 +08:00
parent 20051a3698
commit 2afd4e7d4a

View File

@@ -84,6 +84,7 @@ function smartdnsRenderStatus(res) {
renderHTML += "<b><font color=green>SmartDNS - " + _("RUNNING") + "</font></b></em>";
} else {
renderHTML += "<b><font color=red>SmartDNS - " + _("NOT RUNNING") + "</font></b></em>";
return renderHTML;
}
if (redirectMode === "dnsmasq-upstream") {