mirror of https://github.com/dnomd343/ClearDNS
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
661 B
29 lines
661 B
#ifndef _COMMON_H_
|
|
#define _COMMON_H_
|
|
|
|
#define VERSION "1.3.0-dev"
|
|
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
|
|
#define DOMESTIC_PORT 4053
|
|
#define FOREIGN_PORT 6053
|
|
#define DIVERTER_PORT 5353
|
|
|
|
#define DNSPROXY_BIN "dnsproxy"
|
|
#define OVERTURE_BIN "overture"
|
|
#define ADGUARD_BIN "AdGuardHome"
|
|
|
|
#define WORK_DIR "/etc/cleardns/"
|
|
|
|
//extern char **adguard_command;
|
|
//extern char **overture_command;
|
|
//extern char **domestic_dnsproxy_command;
|
|
//extern char **foreign_dnsproxy_command;
|
|
|
|
//void load_start_command(char *adguard_workdir, char *overture_config, char *upstream_config, int is_debug);
|
|
|
|
char* show_bool(int value);
|
|
void save_file(char *file, char *content);
|
|
|
|
#endif
|
|
|