dns_server: export is_ipv6_ready function
This commit is contained in:
@@ -144,7 +144,7 @@ force-qtype-SOA 65
|
|||||||
# log-file: file path of log file.
|
# log-file: file path of log file.
|
||||||
# log-size: size of each log file, support k,m,g
|
# log-size: size of each log file, support k,m,g
|
||||||
# log-num: number of logs, 0 means disable log
|
# log-num: number of logs, 0 means disable log
|
||||||
log-level debug
|
log-level info
|
||||||
|
|
||||||
# log-file /var/log/smartdns/smartdns.log
|
# log-file /var/log/smartdns/smartdns.log
|
||||||
# log-size 128k
|
# log-size 128k
|
||||||
|
|||||||
@@ -346,6 +346,11 @@ static void *_dns_server_get_dns_rule(struct dns_request *request, enum domain_r
|
|||||||
static const char *_dns_server_get_request_groupname(struct dns_request *request);
|
static const char *_dns_server_get_request_groupname(struct dns_request *request);
|
||||||
static int _dns_server_tcp_socket_send(struct dns_server_conn_tcp_client *tcp_client, void *data, int data_len);
|
static int _dns_server_tcp_socket_send(struct dns_server_conn_tcp_client *tcp_client, void *data, int data_len);
|
||||||
|
|
||||||
|
int dns_is_ipv6_ready(void)
|
||||||
|
{
|
||||||
|
return is_ipv6_ready;
|
||||||
|
}
|
||||||
|
|
||||||
static void _dns_server_wakeup_thread(void)
|
static void _dns_server_wakeup_thread(void)
|
||||||
{
|
{
|
||||||
uint64_t u = 1;
|
uint64_t u = 1;
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ struct dns_server_query_option {
|
|||||||
struct dns_query_ecs_ip ecs_ip;
|
struct dns_query_ecs_ip ecs_ip;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int dns_is_ipv6_ready(void);
|
||||||
|
|
||||||
int dns_server_init(void);
|
int dns_server_init(void);
|
||||||
|
|
||||||
int dns_server_run(void);
|
int dns_server_run(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user