PKG_LICENSE:=AGPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
PKG_VERSION:=2025.12.29
-PKG_RELEASE:=4
+PKG_RELEASE:=5
LUCI_TITLE:=DNS Over HTTPS Proxy Web UI
LUCI_URL:=https://github.com/mossdef-org/luci-app-https-dns-proxy/
} else {
text = _("Not installed or not found");
}
- var statusText = E("output", { id: pkg.Name + "-status", class: "cbi-value-description" }, text);
+ var statusText = E("output", { id: pkg.Name + "-status" }, text);
var statusField = E("div", { class: "cbi-value-field" }, statusText);
var statusDiv = E("div", { class: "cbi-value" }, [
statusTitle,
{ class: "cbi-value-title", for: pkg.Name + "-instances" },
_("Service Instances")
);
- text = _("See the %sREADME%s for details.").format(
- '<a href="' +
- pkg.URL +
- '#a-word-about-default-routing " target="_blank">',
- "</a>"
- );
- var instancesDescr = E("div", { class: "cbi-value-description" }, "");
-
text = "";
Object.values(reply.ubus.instances).forEach((element) => {
var resolver;
"<br />"
);
});
- text +=
- "<br />" +
- _("Please %sdonate%s to support development of this project.").format(
+ var instancesText = E("output", { id: pkg.Name + "-instances" }, text);
+ var instancesDescr = E("div", { class: "cbi-value-description" },
+ _(
+ "Please %sdonate%s to support development of this project.",
+ ).format(
"<a href='" + pkg.DonateURL + "' target='_blank'>",
- "</a>"
- );
- var instancesText = E("output", { id: pkg.Name + "-instances", class: "cbi-value-description" }, text);
+ "</a>",
+ ));
var instancesField = E("div", { class: "cbi-value-field" }, [
instancesText,
+ E("br"),
instancesDescr,
]);
instancesDiv = E("div", { class: "cbi-value" }, [
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:283
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:275
msgid "%s%s%s proxy at %s on port %s.%s"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:275
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:267
msgid "%s%s%s proxy on port %s.%s"
msgstr ""
msgid "Direct"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:407
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:401
msgid "Disable"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:401
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:395
msgid "Disabling %s service"
msgstr ""
msgid "ECS Optimized"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:388
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:382
msgid "Enable"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:382
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:376
msgid "Enabling %s service"
msgstr ""
msgid "Parameter"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:294
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:287
msgid "Please %sdonate%s to support development of this project."
msgstr ""
msgid "Quad 9"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:350
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:344
msgid "Restart"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:344
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:338
msgid "Restarting %s service"
msgstr ""
msgid "Security Filter"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:228
-msgid "See the %sREADME%s for details."
-msgstr ""
-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js:104
msgid "Select the DNSMASQ Configs to update"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:433
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:427
msgid "Service Control"
msgstr ""
msgid "Standard"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:331
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:325
msgid "Start"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:325
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:319
msgid "Starting %s service"
msgstr ""
msgid "Statistic Interval"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:369
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:363
msgid "Stop"
msgstr ""
-#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:363
+#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:357
msgid "Stopping %s service"
msgstr ""
. "${IPKG_INSTROOT}/lib/functions.sh"
. "${IPKG_INSTROOT}/usr/share/libubox/jshn.sh"
-is_enabled() { "/etc/init.d/${1}" enabled; }
-is_running() { [ "$(ubus call service list "{ 'name': '$1' }" | jsonfilter -q -e "@['$1'].instances[*].running" | uniq)" = 'true' ]; }
+is_enabled() { "/etc/init.d/${1}" enabled >/dev/null 2>&1; }
+is_running() { "/etc/init.d/${1}" running >/dev/null 2>&1; }
get_version() { /usr/sbin/https-dns-proxy -V | head -1; }
check_http2() { /usr/sbin/https-dns-proxy -V | grep -q 'nghttp2'; }
check_http3() { /usr/sbin/https-dns-proxy -V | grep -q 'nghttp3'; }
-ubus_get_ports() { ubus call service list "{ 'name': '$packageName' }" | jsonfilter -e "@['${packageName}'].instances[*].data.firewall.*.dest_port"; }
+ubus_get_ports() { ubus call service list "{\"name\":\"$packageName\"}" | jsonfilter -e "@[\"${packageName}\"].instances.*.data.firewall.*.dest_port"; }
logger() { /usr/bin/logger -t "$packageName" "$@"; }
print_json_bool() { json_init; json_add_boolean "$1" "$2"; json_dump; json_cleanup; }
get_init_list() {
- local name="$1"
+ local name
+ name="$(basename "$1")"
+ name="${name:-${packageName}}"
json_init
json_add_object "$name"
if is_enabled "$name"; then
json_add_boolean 'force_dns_active' '0'
fi
json_add_string 'version' "$version"
- json_close_array
json_close_object
json_dump
json_cleanup