Skip to content

Commit

Permalink
go-ipfs-config: feat: omitempty Swarm.EnableRelayHop for circuit v1 m…
Browse files Browse the repository at this point in the history
…igration (ipfs#157)

* re-add the Swarm.EnableRelayHop option
* make Swarm.EnableRelayHop omitempty

Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
marten-seemann and lidel authored Nov 23, 2021
1 parent c1b388a commit 1671fd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1671fd6

Please sign in to comment.