diff options
| author | Alex Morcos <[email protected]> | 2017-05-18 16:57:53 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-05-22 12:56:13 +0200 |
| commit | 37a8fc54d480788a06ff17415128d815ac55eaed (patch) | |
| tree | 8009b4a1cb479ff3e32aa6bc94636e9ea2ab32dd /src/net.cpp | |
| parent | [depends] miniupnpc 2.0.20170509 (diff) | |
| download | discoin-37a8fc54d480788a06ff17415128d815ac55eaed.tar.xz discoin-37a8fc54d480788a06ff17415128d815ac55eaed.zip | |
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: 307013469f9a3b8f13d3eb9dbeea419a55148493
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 03c8e5ecc..5593f81ef 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -143,7 +143,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn // one by discovery. CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices) { - CAddress ret(CService(CNetAddr(),GetListenPort()), NODE_NONE); + CAddress ret(CService(CNetAddr(),GetListenPort()), nLocalServices); CService addr; if (GetLocal(addr, paddrPeer)) { |