Skip to content

Commit

Permalink
fix: enable hole punching
Browse files Browse the repository at this point in the history
this idoes not hurt, and should help if someone is runnign someguy
without public addr + hole punching is necessary
  • Loading branch information
lidel committed Aug 14, 2024
1 parent 293c322 commit fb3086d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ The following emojis are used to highlight certain changes:

### Security

## [v0.4.1]

### Fixed

- enabled NAT port map and Hole Punching to increase connectivity in non-public network topologies

## [v0.4.0]

### Changed
Expand Down
4 changes: 4 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ func newHost(cfg *config) (host.Host, error) {
libp2p.UserAgent("someguy/"+buildVersion()),
libp2p.ConnectionManager(cmgr),
libp2p.ResourceManager(rcmgr),
libp2p.NATPortMap(),
libp2p.DefaultTransports,
libp2p.DefaultMuxers,
libp2p.EnableHolePunching(),

Check warning on line 192 in server.go

View check run for this annotation

Codecov / codecov/patch

server.go#L189-L192

Added lines #L189 - L192 were not covered by tests
)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.4.0"
"version": "v0.4.1"
}

0 comments on commit fb3086d

Please sign in to comment.