Permalink
Browse files

Populate services in GetLocalAddress

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: 3070134
  • Loading branch information...
1 parent 8adf75e commit b6548420291de0e077b02de71b4f2cea3dac0f8c @morcos morcos committed with laanwj May 18, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/net.cpp
View
@@ -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))
{

0 comments on commit b654842

Please sign in to comment.