@cryptotaxi247 / kubo / commits / bf3a2ca8d

go-ipfs-config: set Swarm.EnableAutoRelay to omitempty

Co-authored-by: Marcin Rataj <lidel@lidel.org>

Marten Seemann committed Nov 15, 2021 at 17:34 UTC bf3a2ca8de921e58c32d75f2c5f771e43ff70998
1 file changed +1 -1
config/swarm.go
+1 -1
@@ -25,7 +25,7 @@ type SwarmConfig struct {
25 //
26 // Deprecated: This flag is deprecated and is overriden by
27 // `Swarm.AutoRelay.Enabled` if specified.
28 - EnableAutoRelay bool
28 + EnableAutoRelay bool `json:",omitempty"`
29
30 // AutoRelay controls the "auto relay service" feature.
31 // When enabled, the node will use relays if it is not publicly reachable.