Skip to content

Commit

Permalink
Merge pull request openwrt#6821 from stangri/master-luci-app-https-dn…
Browse files Browse the repository at this point in the history
…s-proxy

luci-app-https-dns-proxy: bugfix: editing providers with options
  • Loading branch information
stangri authored Jan 9, 2024
2 parents 49f9b43 + a83427f commit 9b56e2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 344 deletions.
2 changes: 1 addition & 1 deletion applications/luci-app-https-dns-proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk

PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <[email protected]>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 9b56e2d

Please sign in to comment.