原始文献 / 论坛帖 / Re: Simple to implement feature requests
Re: Simple to implement feature requests
Bitcointalk · 2010-02-08 16:37:24 UTC
有这些命令行选项:
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
