From 478b01d9a797f3ea41cca141992b161867a5996d Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 24 Apr 2012 02:15:00 +0200 Subject: Add -seednode connections, and use this for -dnsseed + -proxydns --- src/init.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 35da20336..f9ea998ce 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -180,12 +180,13 @@ bool AppInit2(int argc, char* argv[]) " -timeout= \t " + _("Specify connection timeout (in milliseconds)") + "\n" + " -proxy= \t " + _("Connect through socks proxy") + "\n" + " -socks= \t " + _("Select the version of socks proxy to use (4 or 5, 5 is default)") + "\n" + - " -dns \t " + _("Allow DNS lookups for addnode and connect") + "\n" + + " -dns \t " + _("Allow DNS lookups for -addnode, -seednode and -connect") + "\n" + " -proxydns \t " + _("Pass DNS requests to (SOCKS5) proxy") + "\n" + " -port= \t\t " + _("Listen for connections on (default: 8333 or testnet: 18333)") + "\n" + " -maxconnections=\t " + _("Maintain at most connections to peers (default: 125)") + "\n" + " -addnode= \t " + _("Add a node to connect to and attempt to keep the connection open") + "\n" + " -connect= \t\t " + _("Connect only to the specified node") + "\n" + + " -seednode= \t\t " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n" + " -irc \t " + _("Find peers using internet relay chat (default: 0)") + "\n" + " -listen \t " + _("Accept connections from outside (default: 1)") + "\n" + #ifdef QT_GUI @@ -536,6 +537,9 @@ bool AppInit2(int argc, char* argv[]) fNoListen = !GetBoolArg("-listen", true); nSocksVersion = GetArg("-socks", 5); + BOOST_FOREACH(string strDest, mapMultiArgs["-seednode"]) + AddOneShot(strDest); + // Continue to put "/P2SH/" in the coinbase to monitor // BIP16 support. // This can be removed eventually... -- cgit v1.2.3