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

feat: omitempty Swarm.EnableRelayHop for circuit v1 migration #157

Merged
merged 3 commits into from
Nov 23, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
lidel marked this conversation as resolved.
Show resolved Hide resolved
// 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