Skip to content

Commit

Permalink
feat: add a flag to enable the hole punching service (ipfs#155)
Browse files Browse the repository at this point in the history
* add a flag to enable the hole punching service
* chore: omitempty EnableHolePunching

Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
marten-seemann and lidel authored Nov 16, 2021
1 parent bcd969a commit 1503bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ type SwarmConfig struct {
// When enabled, node will provide a limited relay service to other peers.
RelayService RelayService

// EnableHolePunching enables the hole punching service.
EnableHolePunching Flag `json:",omitempty"`

// Transports contains flags to enable/disable libp2p transports.
Transports Transports

Expand Down

0 comments on commit 1503bb2

Please sign in to comment.