fix bug where hot mn can't start if upnp is on

This commit is contained in:
UdjinM6 2015-08-31 05:28:37 +03:00
parent 2c14877c6e
commit ce6e5cf8b0

View File

@ -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