diff --git a/README.md b/README.md index c89b714f0330336fac8c1bc6dbe88eb0587fef53..7759d94a2da36e8554586f60d8ec1b5a9407306c 100644 --- a/README.md +++ b/README.md @@ -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| diff --git a/cmd/root.go b/cmd/root.go index 0e009b221cc504b0547cd03a20d8ba44d93a5e77..dd978211c9dbce70fc812b52e90e6f97d334ed81 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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,