Skip to content

Commit

Permalink
Update lens Resolv: add option trust-ad (#784)
Browse files Browse the repository at this point in the history
Co-authored-by: George Hansper <[email protected]>
  • Loading branch information
georgehansper and George Hansper authored Dec 3, 2022
1 parent 564c5bf commit ea9fffb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lenses/resolv.aug
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ let options =
| Build.flag ("debug"|"rotate"|"no-check-names"
|"inet6"|"ip6-bytestring"|"edns0"
|"single-request"|"single-request-reopen"
|"no-tld-query"|"use-vc"|"no-reload")
|"no-tld-query"|"use-vc"|"no-reload"
|"trust-ad")
| ip6_dotint

in Build.key_value_line_comment
Expand Down
16 changes: 15 additions & 1 deletion lenses/tests/test_resolv.aug
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sortlist 130.155.160.0/255.255.240.0 130.155.0.0

options ndots:3 debug timeout:2
options no-ip6-dotint single-request-reopen # and EOL comments
options attempts:3 rotate no-check-names inet6 ip6-bytestring ip6-dotint edns0 single-request no-tld-query use-vc no-reload trust-ad

lookup file bind
family inet6 inet4
Expand Down Expand Up @@ -42,8 +43,21 @@ test Resolv.lns get conf =
{ "options"
{ "ip6-dotint"
{ "negate" } }
{ "single-request-reopen" }
{ "single-request-reopen" }
{ "#comment" = "and EOL comments" } }
{ "options"
{ "attempts" = "3" }
{ "rotate" }
{ "no-check-names" }
{ "inet6" }
{ "ip6-bytestring" }
{ "ip6-dotint" }
{ "edns0" }
{ "single-request" }
{ "no-tld-query" }
{ "use-vc" }
{ "no-reload" }
{ "trust-ad" } }
{}
{ "lookup"
{ "file" }
Expand Down

0 comments on commit ea9fffb

Please sign in to comment.