Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit bb8b76d

Browse files
feat: omitempty Swarm.EnableRelayHop for circuit v1 migration (#157)
* re-add the Swarm.EnableRelayHop option * make Swarm.EnableRelayHop omitempty Co-authored-by: Marcin Rataj <[email protected]>
1 parent 223713f commit bb8b76d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

swarm.go

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ type SwarmConfig struct {
1919
// `Swarm.Transports.Relay` if specified.
2020
DisableRelay bool `json:",omitempty"`
2121

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+
2228
// EnableAutoRelay enables the "auto relay user" feature.
2329
// Node will find and use advertised public relays when it determines that
2430
// it's not reachable from the public internet.

0 commit comments

Comments
 (0)