Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
ad772e5d
提交
ad772e5d
authored
8月 17, 2017
作者:
vyzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
document circuit relay in docs/experimental-features
License: MIT Signed-off-by:
vyzo
<
vyzo@hackzen.org
>
上级
b6eb0850
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
53 行增加
和
0 行删除
+53
-0
experimental-features.md
docs/experimental-features.md
+53
-0
没有找到文件。
docs/experimental-features.md
浏览文件 @
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.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论