Bugfix: store source address in addrman
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 5 May 2012 19:27:52 +0000 (21:27 +0200)
committerGavin Andresen <gavinandresen@gmail.com>
Sun, 6 May 2012 23:59:42 +0000 (19:59 -0400)
src/addrman.h

index 7652df6..3768614 100644 (file)
@@ -62,7 +62,7 @@ public:
         nRandomPos = -1;
     }
 
-    CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn)
+    CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn), source(addrSource)
     {
         Init();
     }