From f4d19f5606120b8651fa19c4b5df10d731614745 Mon Sep 17 00:00:00 2001 From: cameronts Date: Sat, 6 Aug 2022 15:40:40 -0700 Subject: [PATCH] Change method used for detecting nftables from looking for nftables.conf (not always there) to looking for nft executable (there upon apt install nft). --- netclient/ncutils/netclientutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netclient/ncutils/netclientutils.go b/netclient/ncutils/netclientutils.go index 63b23c84..883fa608 100644 --- a/netclient/ncutils/netclientutils.go +++ b/netclient/ncutils/netclientutils.go @@ -114,7 +114,7 @@ func GetWireGuard() string { func IsNFTablesPresent() bool { var nftFound bool - nftFound = FileExists("/etc/nftables.conf") + nftFound = FileExists("/usr/sbin/nft") logger.Log(3, "nftables found:", strconv.FormatBool(nftFound)) return nftFound }