From 19ab4720aeb8834ce0592fc2232589ae64911015 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Oct 2024 09:16:20 -0700 Subject: [PATCH] Add flag discovery.dns --- docs/cli/server.md | 2 ++ internal/cli/server/flags.go | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/docs/cli/server.md b/docs/cli/server.md index fb0f01e777..adeacd731a 100644 --- a/docs/cli/server.md +++ b/docs/cli/server.md @@ -218,6 +218,8 @@ The ```bor server``` command runs the Bor client. - ```bootnodes```: Comma separated enode URLs for P2P discovery bootstrap +- ```discovery.dns```: Comma separated list of enrtree:// URLs which will be queried for nodes to connect to + - ```maxpeers```: Maximum number of network peers (network disabled if set to 0) (default: 50) - ```maxpendpeers```: Maximum number of pending connection attempts (default: 50) diff --git a/internal/cli/server/flags.go b/internal/cli/server/flags.go index eb84f4fd77..0cf8919b9d 100644 --- a/internal/cli/server/flags.go +++ b/internal/cli/server/flags.go @@ -806,6 +806,13 @@ func (c *Command) Flags(config *Config) *flagset.Flagset { Default: c.cliConfig.P2P.TxArrivalWait, Group: "P2P", }) + f.SliceStringFlag(&flagset.SliceStringFlag{ + Name: "discovery.dns", + Usage: "Comma separated list of enrtree:// URLs which will be queried for nodes to connect to", + Value: &c.cliConfig.P2P.Discovery.DNS, + Default: c.cliConfig.P2P.Discovery.DNS, + Group: "P2P", + }) // metrics f.BoolFlag(&flagset.BoolFlag{