DNS name resolution for command line parameters

This commit is contained in:
SChernykh
2021-09-08 20:25:39 +02:00
parent 3a08a6d28d
commit ee7a1e54f7
7 changed files with 71 additions and 16 deletions

View File

@@ -72,7 +72,7 @@ Params::Params(int argc, char* argv[])
bool Params::ok() const
{
return m_host && m_rpcPort && m_zmqPort && m_wallet.valid();
return !m_host.empty() && m_rpcPort && m_zmqPort && m_wallet.valid();
}
} // namespace p2pool