fixing dillon comments

This commit is contained in:
afeiszli 2022-01-26 14:49:48 -05:00
parent 3b84aceec9
commit 3ecc13833d
2 changed files with 2 additions and 4 deletions

View file

@ -13,7 +13,7 @@ import (
"github.com/gravitl/netmaker/servercfg" "github.com/gravitl/netmaker/servercfg"
) )
const NETMAKER_PROCESS_NAME = "netmaker" const netmakerProcessName = "netmaker"
// InitServerNetclient - intializes the server netclient // InitServerNetclient - intializes the server netclient
func InitIPTables() error { func InitIPTables() error {
@ -70,7 +70,7 @@ func isContainerized() bool {
return false return false
} }
fileString := string(fileBytes) fileString := string(fileBytes)
return strings.Contains(fileString, NETMAKER_PROCESS_NAME) return strings.Contains(fileString, netmakerProcessName)
} }
// make sure host allows forwarding // make sure host allows forwarding

View file

@ -12,8 +12,6 @@ import (
"github.com/gravitl/netmaker/netclient/ncutils" "github.com/gravitl/netmaker/netclient/ncutils"
) )
const NETMAKER_BINARY_NAME = "netmaker"
// InitServerNetclient - intializes the server netclient // InitServerNetclient - intializes the server netclient
func InitServerNetclient() error { func InitServerNetclient() error {
netclientDir := ncutils.GetNetclientPath() netclientDir := ncutils.GetNetclientPath()