go-ipfs-config: feat: add a flag to enable the hole punching service (#155)

* add a flag to enable the hole punching service
* chore: omitempty EnableHolePunching

Co-authored-by: Marcin Rataj <lidel@lidel.org>
This commit is contained in:
Marten Seemann 2021-11-16 14:55:46 +04:00 committed by GitHub
parent 1b4502c77f
commit 7fe155c287

View File

@ -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