Skip to content

Commit

Permalink
go-ipfs-config: feat: add a flag to enable the hole punching service (i…
Browse files Browse the repository at this point in the history
…pfs#155)

* 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 1b4502c commit 7fe155c
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 7fe155c

Please sign in to comment.