Skip to content

Commit

Permalink
Merge pull request ipfs#21 from ipfs/feat/autorelay
Browse files Browse the repository at this point in the history
autorelay options
  • Loading branch information
Stebalien authored Nov 27, 2018
2 parents 4033f47 + cf9e6be commit 286bb54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/.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 config/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 config/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

ConnMgr ConnMgr
}

Expand Down

0 comments on commit 286bb54

Please sign in to comment.