summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2024-01-09 03:43:17 -0700
committerGitHub <noreply@github.com>2024-01-09 03:43:17 -0700
commited779d21b468c78c3a6b896adb31d079f450eca2 (patch)
treee80b8c1ca79f1cbcd2bf3beee922644073eaf4b7
parent971459df2604ecdef87ad945314a9887e0dff517 (diff)
parent40e39f96dc8bf4cfcb0a0283e4d022c9fc48b3de (diff)
Merge pull request #6823 from stangri/openwrt-23.05-luci-app-https-dns-proxy
[23.05 luci-app-https-dns-proxy: bugfix: editing providers with options
-rw-r--r--applications/luci-app-https-dns-proxy/Makefile2
-rw-r--r--applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-https-dns-proxy/Makefile b/applications/luci-app-https-dns-proxy/Makefile
index b0daecedf9..3e6209c137 100644
--- a/applications/luci-app-https-dns-proxy/Makefile
+++ b/applications/luci-app-https-dns-proxy/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
-PKG_VERSION:=2023-10-25-5
+PKG_VERSION:=2023-11-19-1
LUCI_TITLE:=DNS Over HTTPS Proxy Web UI
LUCI_DESCRIPTION:=Provides Web UI for DNS Over HTTPS Proxy
diff --git a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
index a9bc25b905..253525fb4a 100644
--- a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
+++ b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
@@ -297,8 +297,8 @@ return view.extend({
section_id,
"resolver_url"
);
- if (_paramList.template !== template) return 0;
- let resolver = pkg.templateToResolver(template, {
+ if (!formvalue && _paramList.template !== template) return 0;
+ let resolver = pkg.templateToResolver(_paramList.template, {
option: formvalue || "",
});
L.uci.set(pkg.Name, section_id, "resolver_url", resolver);
@@ -335,8 +335,8 @@ return view.extend({
section_id,
"resolver_url"
);
- if (_paramText.template !== template) return 0;
- let resolver = pkg.templateToResolver(template, {
+ if (!formvalue && _paramText.template !== template) return 0;
+ let resolver = pkg.templateToResolver(_paramText.template, {
option: formvalue || "",
});
L.uci.set(pkg.Name, section_id, "resolver_url", resolver);