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

Commit

Permalink
feat: omitempty Swarm.EnableRelayHop for circuit v1 migration (#157)
Browse files Browse the repository at this point in the history
* re-add the Swarm.EnableRelayHop option
* make Swarm.EnableRelayHop omitempty

Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
marten-seemann and lidel authored Nov 23, 2021
1 parent 223713f commit bb8b76d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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 bb8b76d

Please sign in to comment.