-
Notifications
You must be signed in to change notification settings - Fork 28
Fix port selection #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix port selection #423
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,3 +89,4 @@ onchain | |
| cli | ||
| ENR | ||
| UPnP | ||
| Golang | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,11 +259,11 @@ pub struct Node { | |
| help = "The TCP/UDP ports to listen on. There are two UDP ports. \ | ||
| The discovery UDP port will be set to this value and the Quic UDP port will be set to this value + 1. The discovery port can be modified by the \ | ||
| --discovery-port flag and the quic port can be modified by the --quic-port flag. If listening over both IPv4 and IPv6 the --port flag \ | ||
| will apply to the IPv4 address and --port6 to the IPv6 address.", | ||
| default_value = "13001", | ||
| will apply to the IPv4 address and --port6 to the IPv6 address. If this flag is not set, the default values will be 12001 for discovery and 13001 for TCP, \ | ||
| matching go-ssv's default values.", | ||
| action = ArgAction::Set, | ||
| )] | ||
| pub port: u16, | ||
| pub port: Option<u16>, | ||
|
|
||
| #[clap( | ||
| long, | ||
|
|
@@ -277,8 +277,7 @@ pub struct Node { | |
| #[clap( | ||
| long, | ||
| value_name = "PORT", | ||
| help = "The UDP port that discovery will listen on. Defaults to `12001`", | ||
| default_value = "12001", | ||
| help = "The UDP port that discovery will listen on. Defaults to --port if explicitly specified, and `12001` otherwise.", | ||
|
||
| action = ArgAction::Set, | ||
| )] | ||
| pub discovery_port: Option<u16>, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, I wouldnt mention this is matching go-ssv.