Update rpc_client.cpp

This commit is contained in:
moss9001 2021-11-06 00:56:44 +02:00
parent 1943f5deaf
commit 7f0900de57

View file

@ -337,12 +337,12 @@ rpc_client::rpc_client(std::string url, uint32_t _port, std::string _user, std::
boost::algorithm::to_lower(schema);
try {
fc::ip::address(host); // try to convert host string to valid IPv4 address
fc::ip::address temp(host); // try to convert host string to valid IPv4 address
ip = host;
} catch (...) {
try {
ip = resolve_host_addr(host);
fc::ip::address(ip);
fc::ip::address temp(ip);
} catch (...) {
elog("Failed to resolve Hive node address ${ip}", ("ip", url));
FC_ASSERT(false);