(160 . 7)(160 . 6)
5 " -datadir=<dir> \t\t " + _("Specify data directory\n") +
6 " -timeout=<n> \t " + _("Specify connection timeout (in milliseconds)\n") +
7 " -proxy=<ip:port> \t " + _("Connect through socks4 proxy\n") +
8 " -dns \t " + _("Allow DNS lookups for addnode and connect\n") +
9 " -port=<port> \t\t " + _("Listen for connections on <port> (default: 8333 or testnet: 18333)\n") +
10 " -maxconnections=<n>\t " + _("Maintain at most <n> connections to peers (default: 125)\n") +
11 " -addnode=<ip> \t " + _("Add a node to connect to\n") +
(414 . 10)(413 . 8)
13 // Note: the GetBoolArg() calls for all of these must happen later.
14 SoftSetArg("-nolisten", true);
15 SoftSetArg("-noirc", true);
16 SoftSetArg("-dns", false);
17 }
18
19 fAllowDNS = GetBoolArg("-dns");
20 fNoListen = GetBoolArg("-nolisten");
21
22 // Command-line args override in-wallet settings:
(435 . 7)(432 . 7)
24 {
25 BOOST_FOREACH(string strAddr, mapMultiArgs["-addnode"])
26 {
27 CAddress addr(strAddr, fAllowDNS);
28 CAddress addr(strAddr);
29 addr.nTime = 0; // so it won't relay unless successfully connected
30 if (addr.IsValid())
31 AddAddress(addr);