Adding upstream version 2.13.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d1aefd7f7e
commit
7e7711ed8d
10 changed files with 53 additions and 11 deletions
|
@ -253,6 +253,7 @@ static void setup(int argc, char** argv)
|
|||
const char* edns_option_str = NULL;
|
||||
const char* doh_uri = DEFAULT_DOH_URI;
|
||||
const char* doh_method = DEFAULT_DOH_METHOD;
|
||||
const char* tls_sni = 0;
|
||||
const char* local_suppress = 0;
|
||||
|
||||
size_t num_queries_per_conn = 0;
|
||||
|
@ -337,6 +338,8 @@ static void setup(int argc, char** argv)
|
|||
"the URI to use for DNS-over-HTTPS", DEFAULT_DOH_URI, &doh_uri);
|
||||
perf_long_opt_add("doh-method", perf_opt_string, "doh_method",
|
||||
"the HTTP method to use for DNS-over-HTTPS: GET or POST", DEFAULT_DOH_METHOD, &doh_method);
|
||||
perf_long_opt_add("tls-sni", perf_opt_string, "tls_sni",
|
||||
"the TLS SNI to use for TLS connections", NULL, &tls_sni);
|
||||
perf_long_opt_add("suppress", perf_opt_string, "message[,message,...]",
|
||||
"suppress messages/warnings, see dnsperf(1) man-page for list of message types", NULL, &local_suppress);
|
||||
perf_long_opt_add("num-queries-per-conn", perf_opt_uint, "queries",
|
||||
|
@ -367,6 +370,10 @@ static void setup(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (tls_sni) {
|
||||
perf_net_tls_sni = tls_sni;
|
||||
}
|
||||
|
||||
if (doh_uri) {
|
||||
perf_net_doh_parse_uri(doh_uri);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue