We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d49454 commit 79e67fdCopy full SHA for 79e67fd
src/net.cpp
@@ -238,12 +238,11 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
238
// one by discovery.
239
CService GetLocalAddress(const CNetAddr& addrPeer)
240
{
241
- CService ret{CNetAddr(), GetListenPort()};
242
CService addr;
243
if (GetLocal(addr, &addrPeer)) {
244
- ret = CService{addr};
+ return addr;
245
}
246
- return ret;
+ return CService{CNetAddr(), GetListenPort()};
247
248
249
static int GetnScore(const CService& addr)
0 commit comments