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

This commit is contained in:
cameronts 2022-08-06 15:40:40 -07:00
parent aeca559a8a
commit f4d19f5606

View file

@ -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
}