diff --git a/src/Makefile.am b/src/Makefile.am index c552cb6..37342f7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,3 @@ bin_PROGRAMS = chinadns -chinadns_SOURCES = chinadns.c local_ns_parser.c +chinadns_SOURCES = chinadns.c local_ns_parser.c local_ns_parser.h diff --git a/src/chinadns.c b/src/chinadns.c index 3cfb8f6..6716554 100644 --- a/src/chinadns.c +++ b/src/chinadns.c @@ -902,7 +902,7 @@ Forward DNS requests.\n\ if not specified, CHNRoute will be turned\n\ -d off enable bi-directional CHNRoute filter\n\ -y delay time for suspects, default: 0.3\n\ - -b BIND_ADDR address that listens, default: 127.0.0.1\n\ + -b BIND_ADDR address that listens, default: 0.0.0.0\n\ -p BIND_PORT port that listens, default: 53\n\ -s DNS DNS servers to use, default:\n\ 114.114.114.114,208.67.222.222:443,8.8.8.8\n\ diff --git a/src/local_ns_parser.c b/src/local_ns_parser.c index bd7136c..91937dd 100644 --- a/src/local_ns_parser.c +++ b/src/local_ns_parser.c @@ -1,5 +1,6 @@ #include #include +#include #include "local_ns_parser.h" static void local_ns_setsection(ns_msg *msg, ns_sect sect);