aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-05-18 16:57:53 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2017-05-22 12:57:52 +0200
commitb6548420291de0e077b02de71b4f2cea3dac0f8c (patch)
treec306757127af3aa5c0f30fbe910cf8328c38fe94
parent8adf75e6a124267da1ae46be1eee50c52ce6082b (diff)
Populate services in GetLocalAddressv0.13-final
Previously if we didn't have any local addresses, GetLocalAddress would return 0.0.0.0 and then we'd swap in a peer's notion of our address in AdvertiseLocal, but then nServices would never get set. Github-Pull: #10424 Rebased-From: 307013469f9a3b8f13d3eb9dbeea419a55148493
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 7cb612ee96..0b8bfd8600 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -179,7 +179,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn
// one by discovery.
CAddress GetLocalAddress(const CNetAddr *paddrPeer)
{
- CAddress ret(CService("0.0.0.0",GetListenPort()), NODE_NONE);
+ CAddress ret(CService("0.0.0.0",GetListenPort()), nLocalServices);
CService addr;
if (GetLocal(addr, paddrPeer))
{