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.
This commit is contained in:
parent
962cd3f058
commit
307013469f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn
|
||||||
// one by discovery.
|
// one by discovery.
|
||||||
CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices)
|
CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices)
|
||||||
{
|
{
|
||||||
CAddress ret(CService(CNetAddr(),GetListenPort()), NODE_NONE);
|
CAddress ret(CService(CNetAddr(),GetListenPort()), nLocalServices);
|
||||||
CService addr;
|
CService addr;
|
||||||
if (GetLocal(addr, paddrPeer))
|
if (GetLocal(addr, paddrPeer))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue