فهرست منبع

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

Nick Peng 5 سال پیش
والد
کامیت
2afd4e7d4a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      package/luci/files/luci/htdocs/luci-static/resources/view/smartdns/smartdns.js

+ 1 - 0
package/luci/files/luci/htdocs/luci-static/resources/view/smartdns/smartdns.js

@@ -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") {