|
@ -15,8 +15,6 @@ |
|
|
|
|
|
|
|
|
#define VERSION "1.3.2" |
|
|
#define VERSION "1.3.2" |
|
|
#define CONFIG_FILE "cleardns.yml" |
|
|
#define CONFIG_FILE "cleardns.yml" |
|
|
#define ADGUARD_USER "admin" |
|
|
|
|
|
#define ADGUARD_PASSWD "cleardns" |
|
|
|
|
|
|
|
|
|
|
|
#define DNSPROXY_BIN "dnsproxy" |
|
|
#define DNSPROXY_BIN "dnsproxy" |
|
|
#define OVERTURE_BIN "overture" |
|
|
#define OVERTURE_BIN "overture" |
|
@ -27,8 +25,11 @@ |
|
|
#define ASSETS_DIR "/cleardns/assets/" |
|
|
#define ASSETS_DIR "/cleardns/assets/" |
|
|
#define ADGUARD_DIR "/cleardns/adguard/" |
|
|
#define ADGUARD_DIR "/cleardns/adguard/" |
|
|
|
|
|
|
|
|
#define UPDATE_CRON "0 4 * * *" |
|
|
#define ADGUARD_USER "admin" |
|
|
#define ASSETS_PKG "/assets.tar.xz" |
|
|
#define ADGUARD_PASSWD "cleardns" |
|
|
|
|
|
|
|
|
|
|
|
#define UPDATE_CRON "0 4 * * *" |
|
|
|
|
|
#define ASSETS_PKG "/assets.tar.xz" |
|
|
|
|
|
|
|
|
#define ASSET_TTL "ttl.txt" |
|
|
#define ASSET_TTL "ttl.txt" |
|
|
#define ASSET_HOSTS "hosts.txt" |
|
|
#define ASSET_HOSTS "hosts.txt" |
|
@ -36,7 +37,7 @@ |
|
|
#define ASSET_CHINA_IP "china-ip.txt" |
|
|
#define ASSET_CHINA_IP "china-ip.txt" |
|
|
#define ASSET_CHINA_LIST "chinalist.txt" |
|
|
#define ASSET_CHINA_LIST "chinalist.txt" |
|
|
|
|
|
|
|
|
#define EXIT_NORMAL 0 |
|
|
#define EXIT_NORMAL 0 |
|
|
#define EXIT_FORK_ERROR 1 |
|
|
#define EXIT_FORK_ERROR 1 |
|
|
#define EXIT_EXEC_ERROR 2 |
|
|
#define EXIT_EXEC_ERROR 2 |
|
|
#define EXIT_WAIT_ERROR 3 |
|
|
#define EXIT_WAIT_ERROR 3 |
|
|