From d345a4a3c6e44f271681491b133607fe532d57f7 Mon Sep 17 00:00:00 2001 From: Seungbae Yu Date: Mon, 16 Jan 2023 19:21:41 +0900 Subject: [PATCH] cmd/bootnode, cmd/utils: add 'pmp:' to --nat flag description (#26381) --- cmd/bootnode/main.go | 2 +- cmd/utils/flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go index 036b968ef8..748113aa48 100644 --- a/cmd/bootnode/main.go +++ b/cmd/bootnode/main.go @@ -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:)") + natdesc = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|pmp:|extip:)") 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)") diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 9997755cf2..541c8ee826 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -828,7 +828,7 @@ var ( } NATFlag = &cli.StringFlag{ Name: "nat", - Usage: "NAT port mapping mechanism (any|none|upnp|pmp|extip:)", + Usage: "NAT port mapping mechanism (any|none|upnp|pmp|pmp:|extip:)", Value: "any", Category: flags.NetworkingCategory, }