Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
b78cdd8e
Commit
b78cdd8e
authored
5 years ago
by
Jono
Browse files
Options
Downloads
Patches
Plain Diff
Fix NDF flag
parent
451b017c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
cmd/root.go
+5
-5
5 additions, 5 deletions
cmd/root.go
with
6 additions
and
6 deletions
README.md
+
1
−
1
View file @
b78cdd8e
...
...
@@ -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
.
default
s 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|
...
...
This diff is collapsed.
Click to expand it.
cmd/root.go
+
5
−
5
View file @
b78cdd8e
...
...
@@ -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
"
,
tru
e
,
rootCmd
.
PersistentFlags
()
.
BoolVar
(
&
skipNDFVerification
,
"
skipNDFVerification
"
,
fals
e
,
"Specifies if the NDF should be loaded without the signature"
)
rootCmd
.
PersistentFlags
()
.
StringSliceVar
(
&
ndfRegistration
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment