Skip to content

Commit

Permalink
Add flag discovery.dns
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Oct 15, 2024
1 parent 57a7f7f commit 19ab472
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/cli/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions internal/cli/server/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 19ab472

Please sign in to comment.