luci-app-https-dns-proxy: bugfix: AdGuard servers URLs 7045/head
authorStan Grishin <stangri@melmac.ca>
Wed, 3 Apr 2024 20:02:55 +0000 (20:02 +0000)
committerStan Grishin <stangri@melmac.ca>
Fri, 5 Apr 2024 03:26:29 +0000 (03:26 +0000)
AdGuard seems to have drastically changed their DoH servers URLs, so this change updates
the root/usr/share/https-dns-proxy/providers/com.adguard.dns.json file.
Fixes https://github.com/openwrt/luci/issues/7038

Also include minor Makefile changes for better menuconfig presence.

Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit 8f92f8b40369c4a2fc0cd358969e9278920d6d18)

applications/luci-app-https-dns-proxy/Makefile
applications/luci-app-https-dns-proxy/root/usr/share/https-dns-proxy/providers/com.adguard.dns.json

index 4ef756b7191622d90b9c0de27c7b3cf2a1959d57..20e3be869e68d099299d8663652b7a8ef57df820 100644 (file)
@@ -3,14 +3,23 @@
 
 include $(TOPDIR)/rules.mk
 
+PKG_NAME:=luci-app-https-dns-proxy
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
-PKG_VERSION:=2023.11.19-r1
+PKG_VERSION:=2023.11.19
+PKG_RELEASE:=r2
 
 LUCI_TITLE:=DNS Over HTTPS Proxy Web UI
 LUCI_DESCRIPTION:=Provides Web UI for DNS Over HTTPS Proxy
 LUCI_DEPENDS:=+luci-base +https-dns-proxy
-LUCI_PKGARCH:=all
+
+define Package/$(PKG_NAME)/config
+# shown in make menuconfig <Help>
+help
+       $(LUCI_TITLE)
+       .
+       Version: $(PKG_VERSION)-$(PKG_RELEASE)
+endef
 
 include ../../luci.mk
 
index f685ba4d6019d94c5a825380379dfb8cb8434116..a0d5010de4b931a3d90ff016fd548621c21e15b6 100644 (file)
@@ -1,24 +1,28 @@
 {
        "title": "AdGuard",
-       "template": "https://dns{option}.adguard.com/dns-query",
-       "bootstrap_dns": "176.103.130.130,176.103.130.131",
-       "help_link": "https://adguard.com/en/adguard-dns/overview.html",
+       "template": "https://{option}.adguard-dns.com/dns-query",
+       "bootstrap_dns": "94.140.14.140,94.140.14.141",
+       "help_link": "https://adguard-dns.io/en/public-dns.html",
        "params": {
                "option": {
                        "description": "Variant",
                        "type": "select",
-                       "regex": "(-family|)",
+                       "regex": "(dns|unfiltered|family)",
                        "options": [
                                {
-                                       "value": "-family",
-                                       "description": "Family Filter"
+                                       "value": "dns",
+                                       "description": "Default (Blocks ads and trackers)"
+                               },
+                               {
+                                       "value": "unfiltered",
+                                       "description": "Unfiltered"
                                },
                                {
-                                       "value": "",
-                                       "description": "Standard"
+                                       "value": "family",
+                                       "description": "Family Filter"
                                }
                        ],
-                       "default": ""
+                       "default": "dns"
                }
        }
 }