mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-18 16:08:44 +08:00
Add check for nftables on daemon start.
This commit is contained in:
parent
e6d7c95669
commit
766084d6a3
1 changed files with 10 additions and 0 deletions
|
|
@ -43,6 +43,16 @@ func checkin() {
|
|||
var nodeCfg config.ClientConfig
|
||||
nodeCfg.Network = network
|
||||
nodeCfg.ReadConfig()
|
||||
// check for nftables present if on Linux
|
||||
if ncutils.IsLinux() {
|
||||
if ncutils.IsNFTablesPresent() {
|
||||
nodeCfg.Node.IsNFTablesPresent = "yes"
|
||||
} else {
|
||||
nodeCfg.Node.IsNFTablesPresent = "no"
|
||||
}
|
||||
} else {
|
||||
nodeCfg.Node.IsNFTablesPresent = "no"
|
||||
}
|
||||
if nodeCfg.Node.IsStatic != "yes" {
|
||||
extIP, err := ncutils.GetPublicIP()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue