Skip to content

Commit b654842

Browse files
morcoslaanwj
authored andcommitted
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
1 parent 8adf75e commit b654842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn
179179
// one by discovery.
180180
CAddress GetLocalAddress(const CNetAddr *paddrPeer)
181181
{
182-
CAddress ret(CService("0.0.0.0",GetListenPort()), NODE_NONE);
182+
CAddress ret(CService("0.0.0.0",GetListenPort()), nLocalServices);
183183
CService addr;
184184
if (GetLocal(addr, paddrPeer))
185185
{

0 commit comments

Comments
 (0)