Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ad772e5d
Commit
ad772e5d
authored
Aug 17, 2017
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document circuit relay in docs/experimental-features
License: MIT Signed-off-by:
vyzo
<
vyzo@hackzen.org
>
parent
b6eb0850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
docs/experimental-features.md
docs/experimental-features.md
+53
-0
No files found.
docs/experimental-features.md
View file @
ad772e5d
...
...
@@ -17,6 +17,7 @@ you MUST please make a PR updating this document, and link the PR in the above i
-
[
ipfs filestore
](
#ipfs-filestore
)
-
[
Private Networks
](
#private-networks
)
-
[
ipfs p2p
](
#ipfs-p2p
)
-
[
Circuit Relay
](
#circuit-relay
)
---
...
...
@@ -212,3 +213,55 @@ Basic usage:
-
[ ] Needs more people to use and report on how well it works / fits use cases
-
[ ] More documentation
-
[ ] Support other protocols
---
## Circuit Relay
Allows peers to connect through an intermediate relay node when there
is no direct connectivity.
### State
Experimental
### In Version
master
### How to enable
The relay transport is enabled by default, which allows peers to dial
through relay and listens for incoming relay connections.
The transport can be disabled by setting
`Swarm.DisableRelay = true`
in
the configuration.
By default, peers don't act as intermediate nodes (relays). This can
be enabled by setting
`Swarm.EnableRelayHop = true`
in the configuration.
Note that the option needs to be set before online services are started
to have an effect; an already online node would have to be restarted.
### Basic Usage:
In order to connect peers QmA and QmB through a relay node QmRelay:
-
Both peers should connect to the relay:
`ipfs swarm connect /transport/address/ipfs/QmRelay`
-
Peer QmA can then connect to peer QmB using the relay:
`ipfs swarm connect /ipfs/QmRelay/p2p-cricuit/ipfs/QmB`
Peers can also connect with an unspecific relay address, which will
try to dial through known relays:
`ipfs swarm connect /p2p-circuit/ipfs/QmB`
Peers can see their (unspecific) relay address in the output of
`ipfs swarm addrs listen`
### Road to being a real feature
-
[ ] Needs more people to use it and report on how well it works.
-
[ ] Advertise relay addresses to the DHT for NATed or otherwise
unreachable peers.
-
[ ] Active relay discovery for specific relay address advertisement.
We would like advertised relay addresses to designate specific relays
for efficient dialing.
-
[ ] Dialing priorities for relay addresses; arguably, relay addresses
should have lower priority than direct dials.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment