回复:容易实现的功能请求
原始发布页
打开来源页面查看 1 个交叉存档
有以下命令行选项:
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
英文原文
展开英文原文
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