Browse Source

Change method used for detecting nftables from looking for nftables.conf (not always there) to looking for nft executable (there upon apt install nft).

cameronts 3 years ago
parent
commit
f4d19f5606
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/ncutils/netclientutils.go

+ 1 - 1
netclient/ncutils/netclientutils.go

@@ -114,7 +114,7 @@ func GetWireGuard() string {
 func IsNFTablesPresent() bool {
 func IsNFTablesPresent() bool {
 	var nftFound bool
 	var nftFound bool
 
 
-	nftFound = FileExists("/etc/nftables.conf")
+	nftFound = FileExists("/usr/sbin/nft")
 	logger.Log(3, "nftables found:", strconv.FormatBool(nftFound))
 	logger.Log(3, "nftables found:", strconv.FormatBool(nftFound))
 	return nftFound
 	return nftFound
 }
 }