UI support second DNS server.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "dns_client.h"
|
||||
#include "atomic.h"
|
||||
#include "dns.h"
|
||||
@@ -45,6 +46,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -745,6 +745,7 @@ static int _config_speed_check_mode(void *data, int argc, char *argv[])
|
||||
char *ptr;
|
||||
int order = 0;
|
||||
int port = 80;
|
||||
int i = 0;
|
||||
|
||||
if (argc <= 1) {
|
||||
return -1;
|
||||
@@ -778,7 +779,7 @@ static int _config_speed_check_mode(void *data, int argc, char *argv[])
|
||||
dns_conf_check_order.tcp_port = port;
|
||||
} else if (strncmp(field, "none", sizeof("none")) == 0) {
|
||||
dns_conf_check_order.order[order] = DOMAIN_CHECK_NONE;
|
||||
for (int i = order + 1; i < DOMAIN_CHECK_NUM; i++) {
|
||||
for (i = order + 1; i < DOMAIN_CHECK_NUM; i++) {
|
||||
dns_conf_check_order.order[i] = DOMAIN_CHECK_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user