OSDN Git Service

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 653e63c..132c186 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