Skip to content

Commit 3070134

Browse files
committed
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.
1 parent 962cd3f commit 3070134

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
@@ -148,7 +148,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn
148148
// one by discovery.
149149
CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices)
150150
{
151-
CAddress ret(CService(CNetAddr(),GetListenPort()), NODE_NONE);
151+
CAddress ret(CService(CNetAddr(),GetListenPort()), nLocalServices);
152152
CService addr;
153153
if (GetLocal(addr, paddrPeer))
154154
{

0 commit comments

Comments
 (0)