Bitcointalk · Simple to implement feature requests

中本聪,2010 年 2 月 8 日

SN-0274 已核对来源,附原文与上下文。

阅读语言
中文译文

有命令行选项:

bitcoin -addnode=1.2.3.4 告诉 bitcoin 要连接的一个节点 bitcoin -connect=1.2.3.4 只连接指定节点

这些选项可以叠加使用,比如 bitcoin -connect=(先试这个) -connect=(下一个) ...

-connect 可以指定不可路由的 IP,比如 192.168.x.x,所以如果你有一个服务器集群,想让一台连接外部世界、其余都连到那一台,也能做到。

特别是,如果你打算一直通过 TOR 连接,就需要 -addnode,因为 IRC 服务器封禁所有 TOR 出口节点。通过 TOR 连接可以用:

bitcoin -proxy=127.0.0.1:9050 -addnode=212.159.72.216

ORIGINAL · 英文原文
There are command line options:

bitcoin -addnode=1.2.3.4    to tell bitcoin about a node to connect to
bitcoin -connect=1.2.3.4    connect only to the specified node(s)

You can use more than one of these, for instance
bitcoin -connect=(first to try) -connect=(next to try) ...

You can specify non-routable IPs with -connect like 192.168.x.x, so if you had a server farm and you wanted one server to connect to the world and the rest to connect to the one server, you could do that.

In particular, -addnode is needed if you're always going to connect through TOR, since the IRC server blocks all the TOR exit nodes.  To connect through TOR, you could use:

bitcoin -proxy=127.0.0.1:9050 -addnode=212.159.72.216
上下文
← 上一条 SN-0274 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0274