Add flag discovery.dns

This commit is contained in:
Jerry 2024-10-15 09:16:20 -07:00
parent 57a7f7fd6f
commit 19ab4720ae
2 changed files with 9 additions and 0 deletions

View file

@ -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)

View file

@ -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{