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

Commit 44a3bfa

Browse files
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 <[email protected]>
1 parent 5f6630c commit 44a3bfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swarm.go

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ type SwarmConfig struct {
3535
// When enabled, node will provide a limited relay service to other peers.
3636
RelayService RelayService
3737

38+
// EnableHolePunching enables the hole punching service.
39+
EnableHolePunching Flag `json:",omitempty"`
40+
3841
// Transports contains flags to enable/disable libp2p transports.
3942
Transports Transports
4043

0 commit comments

Comments
 (0)