mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Re-enable EDNS if an EDNS flag gets set to 1 by +ednsflags
This is consistent with +dnssec and +nsid which only re-enable EDNS if do is set to 1 or nsid is requested.
This commit is contained in:
parent
cbc121ce9a
commit
d74bba4fae
2 changed files with 7 additions and 0 deletions
|
|
@ -1797,6 +1797,10 @@ plus_option(char *option, bool is_batchfile, bool *need_clone,
|
|||
"ednsflags");
|
||||
goto exit_or_usage;
|
||||
}
|
||||
if (lookup->edns == -1) {
|
||||
lookup->edns =
|
||||
DEFAULT_EDNS_VERSION;
|
||||
}
|
||||
lookup->ednsflags = num;
|
||||
break;
|
||||
case 'n':
|
||||
|
|
|
|||
|
|
@ -1354,6 +1354,9 @@ plus_option(char *option, struct query *query, bool global) {
|
|||
"ednsflags");
|
||||
CHECK("parse_xint(ednsflags)",
|
||||
result);
|
||||
if (query->edns == -1) {
|
||||
query->edns = 1;
|
||||
}
|
||||
query->ednsflags = num;
|
||||
break;
|
||||
case 'o':
|
||||
|
|
|
|||
Loading…
Reference in a new issue