diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2011-05-12 14:31:25 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2011-05-12 14:31:25 -0700 |
commit | 9398bf946cf2e59cb8731481d8f2c5820e95dc1e (patch) | |
tree | ebcca306824a5ecdab68a9121c9ab1d0aa9bd96c /src/init.cpp | |
parent | 4b2e21e7eec875a3e1ff898c50f3b8d4d57bae58 (diff) | |
parent | a6a5bb7c204130dd4f3ced74446798eb67ea6472 (diff) |
Merge pull request #192 from sipa/dnslookup
Support for name lookups in -connect and -addnode
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index a8e93140b3..7e84675344 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -158,6 +158,7 @@ bool AppInit2(int argc, char* argv[]) " -min \t\t " + _("Start minimized\n") + " -datadir=<dir> \t\t " + _("Specify data directory\n") + " -proxy=<ip:port> \t " + _("Connect through socks4 proxy\n") + + " -dns \t " + _("Allow DNS lookups for addnode and connect\n") + " -addnode=<ip> \t " + _("Add a node to connect to\n") + " -connect=<ip> \t\t " + _("Connect only to the specified node\n") + " -nolisten \t " + _("Don't accept connections from outside\n") + @@ -208,6 +209,7 @@ bool AppInit2(int argc, char* argv[]) } fDebug = GetBoolArg("-debug"); + fAllowDNS = GetBoolArg("-dns"); #ifndef __WXMSW__ fDaemon = GetBoolArg("-daemon"); @@ -458,7 +460,7 @@ bool AppInit2(int argc, char* argv[]) { foreach(string strAddr, mapMultiArgs["-addnode"]) { - CAddress addr(strAddr, NODE_NETWORK); + CAddress addr(strAddr, fAllowDNS); addr.nTime = 0; // so it won't relay unless successfully connected if (addr.IsValid()) AddAddress(addr); |