From 84942f0b9cd92516505d606e0d3dd92ae688764e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 16 Nov 2021 14:55:46 +0400 Subject: [PATCH] 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 --- config/swarm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/swarm.go b/config/swarm.go index e79d42c97eed..8cbeb122f133 100644 --- a/config/swarm.go +++ b/config/swarm.go @@ -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