Support for name lookups in -connect and -addnode
authorPieter Wuille <pieter.wuille@gmail.com>
Mon, 2 May 2011 13:34:42 +0000 (15:34 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Tue, 10 May 2011 21:49:30 +0000 (23:49 +0200)
commita6a5bb7c204130dd4f3ced74446798eb67ea6472
tree83d8c791956b4027fa9c63c05b670527c8755ab8
parent04a667b0767a6c3fff8d24be784ccaec9edf712b
Support for name lookups in -connect and -addnode

* A new option -dns is introduced that enables name lookups in
  -connect and -addnode, which is not enabled by default,
  as it may be considered a security issue.
* A Lookup function is added that supports retrieving one or
  more addresses based on a host name
* CAddress constructors (optionally) support name lookups.
* The different places in the source code that did name lookups
  are refactored to use NameLookup or CAddress instead (dns seeding,
  irc server lookup, getexternalip, ...).
* Removed ToStringLog() from CAddress, and switched to ToString(),
  since it was empty.
src/init.cpp
src/irc.cpp
src/net.cpp
src/net.h