upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/dns_server.c
blob: 5b1bdc36d26c0a1370901d1dfc52e8b145f79daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "dns_server.h"
#include "tollgate_core_dns.h"

esp_err_t dns_server_start(esp_ip4_addr_t ap_ip, esp_ip4_addr_t upstream_dns)
{
    return tollgate_core_dns_start_internal(ap_ip, upstream_dns);
}

void dns_server_stop(void)
{
    tollgate_core_dns_stop();
}

void dns_server_set_client_authenticated(uint32_t client_ip, bool authenticated)
{
    tollgate_core_dns_set_authenticated(client_ip, authenticated);
}

bool dns_server_is_running(void)
{
    return tollgate_core_dns_is_running();
}