aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/DNSPTRResolverProvider.cpp
blob: 91ce4dbb938a6c4f83e9dc88b91c2acd4122d7b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "DNSPTRResolverProvider.h"
#include "CaresPTRResolver.h"

namespace DB
{
    std::shared_ptr<DNSPTRResolver> DNSPTRResolverProvider::get()
    {
        static auto resolver = std::make_shared<CaresPTRResolver>(
            CaresPTRResolver::provider_token {}
        );

        return resolver;
    }
}