mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fixed error [#METR-22304].
This commit is contained in:
parent
d76514fbe1
commit
22b57b060c
@ -1,4 +1,5 @@
|
||||
#include <Poco/URI.h>
|
||||
#include <Poco/Net/DNS.h>
|
||||
#include <Poco/Net/HTTPRequest.h>
|
||||
#include <Poco/Net/HTTPResponse.h>
|
||||
|
||||
@ -21,7 +22,7 @@ namespace ErrorCodes
|
||||
|
||||
static Poco::Net::IPAddress resolveHostImpl(const String & host)
|
||||
{
|
||||
return Poco::Net::IPAddress{host};
|
||||
return Poco::Net::DNS::resolveOne(host);
|
||||
}
|
||||
|
||||
static Poco::Net::IPAddress resolveHost(const String & host)
|
||||
|
Loading…
Reference in New Issue
Block a user