From b64b14eb7fdfae2dd6f08eac58f1c1813099e660 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 19 Nov 2021 17:18:14 +0400 Subject: [PATCH 1/3] re-add the Swarm.EnableRelayHop option --- swarm.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swarm.go b/swarm.go index 8cbeb12..01e7106 100644 --- a/swarm.go +++ b/swarm.go @@ -19,6 +19,13 @@ type SwarmConfig struct { // `Swarm.Transports.Relay` if specified. DisableRelay bool `json:",omitempty"` + // EnableRelayHop makes this node act as a public relay, relaying + // traffic between other nodes. + // + // Deprecated: The circuit v1 protocol is deprecated. + // Use `Swarm.RelayService` to configure the circuit v2 relay. + EnableRelayHop bool + // 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. From f427a565a5daccf03b6b53329c4ffcad56ffb85f Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 20 Nov 2021 11:58:33 +0400 Subject: [PATCH 2/3] make Swarm.EnableRelayHop omitempty Co-authored-by: Marcin Rataj --- swarm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm.go b/swarm.go index 01e7106..0a4e4a8 100644 --- a/swarm.go +++ b/swarm.go @@ -24,7 +24,7 @@ type SwarmConfig struct { // // Deprecated: The circuit v1 protocol is deprecated. // Use `Swarm.RelayService` to configure the circuit v2 relay. - EnableRelayHop bool + EnableRelayHop bool `json:",omitempty"` // EnableAutoRelay enables the "auto relay user" feature. // Node will find and use advertised public relays when it determines that From 2fc21acd46ad6cd757a0cca9399387be84d770e5 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 23 Nov 2021 12:44:26 +0100 Subject: [PATCH 3/3] chore: shorten circuit v1 docs --- swarm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swarm.go b/swarm.go index 0a4e4a8..0b7d4c5 100644 --- a/swarm.go +++ b/swarm.go @@ -19,8 +19,7 @@ type SwarmConfig struct { // `Swarm.Transports.Relay` if specified. DisableRelay bool `json:",omitempty"` - // EnableRelayHop makes this node act as a public relay, relaying - // traffic between other nodes. + // 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.