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

autorelay options #21

Merged
merged 2 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.19: QmbK4EmM2Xx5fmbqK38TGP3PpY66r3tkXLZTcc7dF9mFwM
0.2.20: QmXctaABKwgzmQgNM4bucMJf7zJnxxvhmPM1Pw95dxUfB5
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@
"license": "",
"name": "go-ipfs-config",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.2.19"
"version": "0.2.20"
}

6 changes: 6 additions & 0 deletions swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ type SwarmConfig struct {
DisableRelay bool
EnableRelayHop bool

// autorelay functionality
// if true, then the libp2p host will be constructed with autorelay functionality.
EnableAutoRelay bool
// if true, then an AutoNATService will be instantiated to facilitate autorelay
EnableAutoNATService bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this tied to auto-relay or is it more general?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more general, but it is a component necessary for autorelay.


ConnMgr ConnMgr
}

Expand Down