go-ipfs-config: feat: omitempty Swarm.EnableRelayHop for circuit v1 migration (#157)
* re-add the Swarm.EnableRelayHop option * make Swarm.EnableRelayHop omitempty Co-authored-by: Marcin Rataj <lidel@lidel.org>
Marten Seemann committed
Nov 23, 2021 at 21:45 UTC
ded27a5473d77601d03aa70a2aa785ab3397eb8f
1 file changed
+6
config/swarm.go
+6
@@ -19,6 +19,12 @@ type SwarmConfig struct {
19
// `Swarm.Transports.Relay` if specified.
20
DisableRelay bool `json:",omitempty"`
21
22
+ // EnableRelayHop makes this node act as a public relay v1
23
+ //
24
+ // Deprecated: The circuit v1 protocol is deprecated.
25
+ // Use `Swarm.RelayService` to configure the circuit v2 relay.
26
+ EnableRelayHop bool `json:",omitempty"`
27
+
28
// EnableAutoRelay enables the "auto relay user" feature.
29
// Node will find and use advertised public relays when it determines that
30
// it's not reachable from the public internet.