aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-02-11 21:26:11 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-02-11 21:26:11 -0500
commit8ad6996cc38c7e5e21698db91759fcc3e8900545 (patch)
tree2b3ef6daafbbbfdca0d461ebcccedb913e8aaa04 /src/net.h
parentb5d9c7d9fb2ddf66e414e22e1d599fb0ef0abb07 (diff)
parent888ac4e7a326986945ca91668c47a3d8fa981d49 (diff)
downloadbitcoin-8ad6996cc38c7e5e21698db91759fcc3e8900545.tar.xz
Merge branch '0.4.x' into 0.5.0.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);