From 1efb3cd5f898e41148b298ae6ecdec4a7ae558f8 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sat, 23 Mar 2024 01:14:38 +0000 Subject: luci-app-https-dns-proxy: prepare migration to APK Signed-off-by: Stan Grishin --- .../luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-https-dns-proxy/root') diff --git a/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy b/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy index 593af173fc..3a05b33a3a 100755 --- a/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy +++ b/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy @@ -19,7 +19,7 @@ readonly providersDir="/usr/share/${packageName}/providers" is_enabled() { "/etc/init.d/${1}" enabled; } is_running() { [ "$(ubus call service list "{ 'name': '$1' }" | jsonfilter -q -e "@['$1'].instances[*].running" | uniq)" = 'true' ]; } -get_version() { grep -m1 -A2 -w "^Package: $1$" /usr/lib/opkg/status | sed -n 's/Version: //p'; } +get_version() { /usr/sbin/https-dns-proxy -V; } check_http2() { curl --version | grep -q 'nghttp2'; } check_http3() { curl --version | grep -q 'nghttp3'; } ubus_get_ports() { ubus call service list "{ 'name': '$packageName' }" | jsonfilter -e "@['${packageName}'].instances[*].data.firewall.*.dest_port"; } -- cgit v1.2.3