summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2023-10-26 14:46:30 +0000
committerStan Grishin <stangri@melmac.ca>2023-10-26 14:47:34 +0000
commitdea2f135d7c915d46940e95a49891b945037be29 (patch)
tree163211f65dbd668bc9cb1ab244e60d60b0c82d0d /applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy
parent7f84135709fd2475360a8f96ad58b92107450480 (diff)
luci-app-https-dns-proxy: add status->overview include file
* add status->overview include file * sync version to principal package * minor code formatting/styling fixes for js files * improve HTTP/2 and HTTP/3 detection in RPCD script Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy')
-rwxr-xr-xapplications/luci-app-https-dns-proxy/root/usr/libexec/rpcd/luci.https-dns-proxy4
1 files changed, 2 insertions, 2 deletions
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 8400af5f1f..7c59f90c38 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
@@ -20,8 +20,8 @@ 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'; }
-check_http2() { grep -q 'Provides: libnghttp2' /usr/lib/opkg/status; }
-check_http3() { grep -q 'Provides: libnghttp3' /usr/lib/opkg/status; }
+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"; }
logger() { /usr/bin/logger -t "$packageName" "$@"; }
print_json_bool() { json_init; json_add_boolean "$1" "$2"; json_dump; json_cleanup; }