CAddrDB::LoadAddresses: properly initialize CAddress

Fixes issue #424
pull/363/merge
Jeff Garzik 13 years ago committed by Jeff Garzik
parent aa7c5e7ceb
commit a139ed74f2

@ -528,7 +528,7 @@ bool CAddrDB::LoadAddresses()
char psz[1000]; char psz[1000];
while (fgets(psz, sizeof(psz), filein)) while (fgets(psz, sizeof(psz), filein))
{ {
CAddress addr(psz, NODE_NETWORK); CAddress addr(psz, false, NODE_NETWORK);
addr.nTime = 0; // so it won't relay unless successfully connected addr.nTime = 0; // so it won't relay unless successfully connected
if (addr.IsValid()) if (addr.IsValid())
AddAddress(addr); AddAddress(addr);

Loading…
Cancel
Save