Skip to content

Commit 57da1f1

Browse files
authored
client: update DNSConfig type (tailscale#8916)
This PR adds DNSFilterURL to the DNSConfig type to be used by control changes to add DNS filtering logic Fixes #cleanup Signed-off-by: Richard Castro <richard@tailscale.com>
1 parent 37c0b9b commit 57da1f1

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

client/tailscale/apitype/controltype.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type DNSConfig struct {
1010
Domains []string `json:"domains"`
1111
Nameservers []string `json:"nameservers"`
1212
Proxied bool `json:"proxied"`
13+
DNSFilterURL string `json:"DNSFilterURL"`
1314
}
1415

1516
type DNSResolver struct {

tailcfg/tailcfg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,8 @@ type DNSConfig struct {
14031403
//
14041404
// Matches are case insensitive.
14051405
ExitNodeFilteredSet []string `json:",omitempty"`
1406+
// DNSFilterURL contains a user inputed URL that should have a list of domains to be blocked
1407+
DNSFilterURL string `json:",omitempty"`
14061408
}
14071409

14081410
// DNSRecord is an extra DNS record to add to MagicDNS.

tailcfg/tailcfg_clone.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tailcfg/tailcfg_view.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)