mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-22 07:29:17 +00:00
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:
parent
4d85a7b2c1
commit
96c49fe02a
2 changed files with 4 additions and 1 deletions
|
|
@ -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"}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue