Skip to content
Snippets Groups Projects
Commit b78cdd8e authored by Jono's avatar Jono
Browse files

Fix NDF flag

parent 451b017c
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ Optional args:
|--nick| |Nickname to register for User Discovery (default "Default")||
|--ndfPubKey|-p|Path to the public key for the network definition JSON file|
|--ndf|-n|Path to the network definition JSON file|
|--ndfVerifySignature| |Specifies if the NDF should be loaded without the signature. defaults to true|
|--skipNDFVerification| |Specifies if the NDF should be loaded without the signature (default false)|
|--ndfRegistration| |Overwrite the Registration values for the NDF|
|--ndfUDB| |Overwrite the UDB values for the NDF|
......
......@@ -53,7 +53,7 @@ var end2end bool
var keyParams []string
var client *api.Client
var ndfPath string
var ndfVerifySignature bool
var skipNDFVerification bool
var ndfRegistration []string
var ndfUDB []string
var ndfPubKey string
......@@ -79,7 +79,7 @@ func sessionInitialization() *id.User {
}
// Check if the NDF verify flag is set
if !ndfVerifySignature {
if skipNDFVerification {
ndfPubKey = ""
globals.Log.WARN.Println("Skipping NDF verification")
} else if ndfPubKey == "" {
......@@ -534,9 +534,9 @@ func init() {
"ndf.json",
"Path to the network definition JSON file")
rootCmd.PersistentFlags().BoolVar(&ndfVerifySignature,
"ndfVerifySignature",
true,
rootCmd.PersistentFlags().BoolVar(&skipNDFVerification,
"skipNDFVerification",
false,
"Specifies if the NDF should be loaded without the signature")
rootCmd.PersistentFlags().StringSliceVar(&ndfRegistration,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment