config: add option -no-cache and -response-mode for domain-rules and add some test cases.

This commit is contained in:
Nick Peng
2023-03-24 21:58:41 +08:00
parent 4f2867b7f4
commit dd23c5fc31
16 changed files with 1004 additions and 66 deletions

View File

@@ -20,6 +20,7 @@
#define _SMARTDNS_SERVER_
#include "dns.h"
#include "include/utils.h"
#include <functional>
#include <string>
#include <sys/socket.h>
@@ -53,7 +54,8 @@ class Server
std::thread thread_;
int fd_;
std::string conf_file_;
bool clean_conf_file_{false};
TempFile conf_temp_file_;
enum CREATE_MODE mode_;
};