2022-06-22 16:14:33 +00:00
|
|
|
#pragma once
|
|
|
|
#include "platform.hpp"
|
|
|
|
|
|
|
|
#include <llarp/constants/platform.hpp>
|
|
|
|
#include <type_traits>
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
namespace llarp::dns
|
|
|
|
{
|
|
|
|
namespace nm
|
|
|
|
{
|
|
|
|
// a dns platform that sets dns via network manager
|
|
|
|
class Platform : public I_Platform
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Platform() = default;
|
|
|
|
|
|
|
|
void
|
2022-07-28 16:07:38 +00:00
|
|
|
set_resolver(unsigned int index, llarp::SockAddr dns, bool global) override;
|
2022-06-22 16:14:33 +00:00
|
|
|
};
|
|
|
|
}; // namespace nm
|
|
|
|
using NM_Platform_t = std::conditional_t<false, nm::Platform, Null_Platform>;
|
|
|
|
} // namespace llarp::dns
|