diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-11 21:26:22 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-11 21:26:22 -0500 |
commit | 9ab932b76988d41ea83d4c5cfb9353e06922ccaa (patch) | |
tree | fd208a144c793435a5cd09727845763348f7e319 /src/net.h | |
parent | 84d228ed839e527f8638db5f451e05bd58905f52 (diff) | |
parent | 8ad6996cc38c7e5e21698db91759fcc3e8900545 (diff) |
Merge branch '0.5.0.x' into 0.5.x
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -362,7 +362,7 @@ public: /// when NTP implemented, change to just nTime = GetAdjustedTime() int64 nTime = (fInbound ? GetAdjustedTime() : GetTime()); CAddress addrYou = (fUseProxy ? CAddress("0.0.0.0") : addr); - CAddress addrMe = (fUseProxy ? CAddress("0.0.0.0") : addrLocalHost); + CAddress addrMe = (fUseProxy || !addrLocalHost.IsRoutable() ? CAddress("0.0.0.0") : addrLocalHost); RAND_bytes((unsigned char*)&nLocalHostNonce, sizeof(nLocalHostNonce)); PushMessage("version", VERSION, nLocalServices, nTime, addrYou, addrMe, nLocalHostNonce, std::string(pszSubVer), nBestHeight); |