ADD EDNS check feature, TCP server bugfix

This commit is contained in:
Nick Peng
2018-12-20 00:16:32 +08:00
parent 3d8155e67b
commit 40740f531b
8 changed files with 230 additions and 52 deletions

View File

@@ -52,6 +52,7 @@ int config_server(int argc, char *argv[], dns_server_type_t type, int default_po
/* clang-format off */
static struct option long_options[] = {
{"blacklist-ip", 0, 0, 'b'},
{"check-edns", 0, 0, 'e'},
{0, 0, 0, 0}
};
/* clang-format on */
@@ -73,6 +74,10 @@ int config_server(int argc, char *argv[], dns_server_type_t type, int default_po
result_flag |= DNSSERVER_FLAG_BLACKLIST_IP;
break;
}
case 'e': {
result_flag |= DNSSERVER_FLAG_CHECK_EDNS;
break;
}
}
}