luci-app-ddns: assume IPv6 support if nftables is present
authorJo-Philipp Wich <jo@mein.io>
Thu, 10 Mar 2022 12:29:34 +0000 (13:29 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 10 Mar 2022 12:31:11 +0000 (13:31 +0100)
Fixes: #5692
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns

index 653e63c16ad1cf5f4783b2856584164c82a55261..132c186642eabffc8290f954cb7f987cd92bc22e 100755 (executable)
@@ -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