Skip to content

Commit aee606a

Browse files
committed
Add missing peer whitelist flag set for manual connections.
1 parent a2c8716 commit aee606a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/net.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ CNode* CConnman::ConnectNode(CAddress addrConnect, const char* pszDest, bool fCo
371371
uint64_t nonce = GetDeterministicRandomizer(RANDOMIZER_ID_LOCALHOSTNONCE).Write(id).Finalize();
372372
CNode* pnode = new CNode(id, nLocalServices, GetBestHeight(), hSocket, addrConnect, CalculateKeyedNetGroup(addrConnect), nonce, pszDest ? pszDest : "", false);
373373
pnode->nServicesExpected = ServiceFlags(addrConnect.nServices & nRelevantServices);
374+
pnode->fWhitelisted = IsWhitelistedRange(addrConnect);
374375
pnode->AddRef();
375376

376377
// We're making a new connection, harvest entropy from the time (and our peer count)

0 commit comments

Comments
 (0)