From ded27a5473d77601d03aa70a2aa785ab3397eb8f Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 23 Nov 2021 21:45:11 +0400 Subject: [PATCH] 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 --- config/swarm.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/swarm.go b/config/swarm.go index 33d7c53b723..d03406126e0 100644 --- a/config/swarm.go +++ b/config/swarm.go @@ -19,6 +19,12 @@ type SwarmConfig struct { // `Swarm.Transports.Relay` if specified. DisableRelay bool `json:",omitempty"` + // EnableRelayHop makes this node act as a public relay v1 + // + // Deprecated: The circuit v1 protocol is deprecated. + // Use `Swarm.RelayService` to configure the circuit v2 relay. + EnableRelayHop bool `json:",omitempty"` + // EnableAutoRelay enables the "auto relay user" feature. // Node will find and use advertised public relays when it determines that // it's not reachable from the public internet.