mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix bug where hot mn can't start if upnp is on
This commit is contained in:
parent
2c14877c6e
commit
ce6e5cf8b0
@ -391,7 +391,9 @@ CNode* FindNode(const CService& addr)
|
||||
CNode* ConnectNode(CAddress addrConnect, const char *pszDest, bool darkSendMaster)
|
||||
{
|
||||
if (pszDest == NULL) {
|
||||
if (IsLocal(addrConnect))
|
||||
// we clean masternode connections in CMasternodeMan::ProcessMasternodeConnections()
|
||||
// so should be safe to skip this and connect to local Hot MN on CActiveMasternode::ManageStatus()
|
||||
if (IsLocal(addrConnect) && !darkSendMaster)
|
||||
return NULL;
|
||||
|
||||
// Look for an existing connection
|
||||
|
Loading…
Reference in New Issue
Block a user