From 575fb0c84e271ec4519523c6e8fba7be7d2da1f8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 10 Mar 2022 13:29:34 +0100 Subject: luci-app-ddns: assume IPv6 support if nftables is present Fixes: #5692 Signed-off-by: Jo-Philipp Wich --- applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-ddns/root/usr/libexec') diff --git a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns index 653e63c16a..132c186642 100755 --- a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns +++ b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns @@ -271,7 +271,8 @@ local methods = { res['has_cacerts'] = check_certs() or false - res['has_ipv6'] = (fs.access("/proc/net/ipv6_route") and fs.access("/usr/sbin/ip6tables")) + res['has_ipv6'] = (fs.access("/proc/net/ipv6_route") and + (fs.access("/usr/sbin/ip6tables") or fs.access("/usr/sbin/nft"))) return res end -- cgit v1.2.3