Skip to content

Commit

Permalink
Fix masternode service lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy authored and Fuzzbawls committed Jun 13, 2020
1 parent 65feb7f commit b36f743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/activemasternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ void CActiveMasternode::ManageStatus()
return;
}
} else {
service = LookupNumeric(strMasterNodeAddr.c_str(), GetListenPort());
int nPort;
std::string strHost;
SplitHostPort(strMasterNodeAddr, nPort, strHost);
service = LookupNumeric(strHost.c_str(), nPort);
}

// The service needs the correct default port to work properly
Expand Down

0 comments on commit b36f743

Please sign in to comment.