Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d345a4a3
Unverified
Commit
d345a4a3
authored
Jan 16, 2023
by
Seungbae Yu
Committed by
GitHub
Jan 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/bootnode, cmd/utils: add 'pmp:<IP>' to --nat flag description (#26381)
parent
55c3b6fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
main.go
cmd/bootnode/main.go
+1
-1
flags.go
cmd/utils/flags.go
+1
-1
No files found.
cmd/bootnode/main.go
View file @
d345a4a3
...
...
@@ -40,7 +40,7 @@ func main() {
writeAddr
=
flag
.
Bool
(
"writeaddress"
,
false
,
"write out the node's public key and quit"
)
nodeKeyFile
=
flag
.
String
(
"nodekey"
,
""
,
"private key filename"
)
nodeKeyHex
=
flag
.
String
(
"nodekeyhex"
,
""
,
"private key as hex (for testing)"
)
natdesc
=
flag
.
String
(
"nat"
,
"none"
,
"port mapping mechanism (any|none|upnp|pmp|extip:<IP>)"
)
natdesc
=
flag
.
String
(
"nat"
,
"none"
,
"port mapping mechanism (any|none|upnp|pmp|
pmp:<IP>|
extip:<IP>)"
)
netrestrict
=
flag
.
String
(
"netrestrict"
,
""
,
"restrict network communication to the given IP networks (CIDR masks)"
)
runv5
=
flag
.
Bool
(
"v5"
,
false
,
"run a v5 topic discovery bootnode"
)
verbosity
=
flag
.
Int
(
"verbosity"
,
int
(
log
.
LvlInfo
),
"log verbosity (0-5)"
)
...
...
cmd/utils/flags.go
View file @
d345a4a3
...
...
@@ -828,7 +828,7 @@ var (
}
NATFlag
=
&
cli
.
StringFlag
{
Name
:
"nat"
,
Usage
:
"NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>)"
,
Usage
:
"NAT port mapping mechanism (any|none|upnp|pmp|
pmp:<IP>|
extip:<IP>)"
,
Value
:
"any"
,
Category
:
flags
.
NetworkingCategory
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment