mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
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:
parent
aeca559a8a
commit
f4d19f5606
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue