Skip to content

Commit 83fe18c

Browse files
committed
p2p: flags never work in config file
1 parent cf93077 commit 83fe18c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

p2p/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ type Config struct {
5353
NoDiscovery bool
5454

5555
// DiscoveryV4 specifies whether V4 discovery should be started.
56-
DiscoveryV4 bool `toml:",omitempty"`
56+
DiscoveryV4 bool `toml:"-"`
5757

5858
// DiscoveryV5 specifies whether the new topic-discovery based V5 discovery
5959
// protocol should be started or not.
60-
DiscoveryV5 bool `toml:",omitempty"`
60+
DiscoveryV5 bool `toml:"-"`
6161

6262
// Name sets the node name of this server.
6363
Name string `toml:"-"`

p2p/config_toml.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)