aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-02-11 21:26:22 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-02-11 21:26:22 -0500
commit9ab932b76988d41ea83d4c5cfb9353e06922ccaa (patch)
treefd208a144c793435a5cd09727845763348f7e319 /src/net.h
parent84d228ed839e527f8638db5f451e05bd58905f52 (diff)
parent8ad6996cc38c7e5e21698db91759fcc3e8900545 (diff)
downloadbitcoin-9ab932b76988d41ea83d4c5cfb9353e06922ccaa.tar.xz
Merge branch '0.5.0.x' into 0.5.x
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 9ce7b42e86..4eadeaa8aa 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);