domain-set: keep domain rules orders

This commit is contained in:
Nick Peng
2023-01-29 22:06:05 +08:00
parent 8bbbcd5e86
commit c6ac69a8d8
6 changed files with 161 additions and 185 deletions

View File

@@ -177,7 +177,7 @@ static int _smartdns_load_from_resolv(void)
{
FILE *fp = NULL;
char line[MAX_LINE_LEN];
char key[MAX_KEY_LEN];
char key[MAX_KEY_LEN] = {0};
char value[MAX_LINE_LEN];
char ns_ip[DNS_MAX_IPLEN];
int port = PORT_NOT_DEFINED;