Skip to content

Commit b36f743

Browse files
furszyFuzzbawls
authored andcommitted
Fix masternode service lookup
1 parent 65feb7f commit b36f743

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/activemasternode.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ void CActiveMasternode::ManageStatus()
6767
return;
6868
}
6969
} else {
70-
service = LookupNumeric(strMasterNodeAddr.c_str(), GetListenPort());
70+
int nPort;
71+
std::string strHost;
72+
SplitHostPort(strMasterNodeAddr, nPort, strHost);
73+
service = LookupNumeric(strHost.c_str(), nPort);
7174
}
7275

7376
// The service needs the correct default port to work properly

0 commit comments

Comments
 (0)