added optmized approach to update IPTable
This commit is contained in:
@@ -36,7 +36,8 @@ type Config struct {
|
||||
PrivateKeyFile string
|
||||
PemFile string
|
||||
KeyFile string
|
||||
BareMetal string
|
||||
BareMetal bool
|
||||
UnsafeMode bool
|
||||
CustomConfig interface{}
|
||||
//NetworkInterface string
|
||||
//NetworkInterfaceIPV6Index int
|
||||
|
||||
@@ -93,7 +93,8 @@ func SetDefaults(envName string, forceDefault bool, CustomConfig interface{}, No
|
||||
// Generate Public and private keys and set path
|
||||
Defaults.PublicKeyFile = defaultPath + "p2prc.PublicKeyBareMetal"
|
||||
Defaults.PrivateKeyFile = defaultPath + "p2prc.privateKey"
|
||||
Defaults.BareMetal = "False"
|
||||
Defaults.BareMetal = false
|
||||
Defaults.UnsafeMode = false
|
||||
|
||||
// Generate certificate files for SSL
|
||||
err = GenerateCertificate()
|
||||
|
||||
Reference in New Issue
Block a user