types: cover split-DNS selectivity for use_with_exit_node

Assert a listed split-domain resolver keeps UseWithExitNode while an
unlisted split resolver in another domain does not, matching the client's
per-resolver useWithExitNodeRoutes filtering.
This commit is contained in:
Nelson Jeppesen 2026-07-09 12:35:44 -07:00
parent 4d85a7b2c1
commit 96c49fe02a
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -262,7 +262,8 @@ func TestReadConfig(t *testing.T) {
{Addr: "1.0.0.1"},
},
Routes: map[string][]*dnstype.Resolver{
"foo.bar.com": {{Addr: "8.8.8.8", UseWithExitNode: true}},
"foo.bar.com": {{Addr: "8.8.8.8", UseWithExitNode: true}},
"baz.example.com": {{Addr: "9.9.9.9"}},
},
},
},

View file

@ -21,6 +21,8 @@ dns:
split:
foo.bar.com:
- 8.8.8.8
baz.example.com:
- 9.9.9.9
use_with_exit_node:
- 1.1.1.1
- 8.8.8.8