mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 10:31:59 +00:00
tailcfg: add DNS address list for IsWireGuardOnly nodes
Tailscale exit nodes provide DNS service over the peer API, however IsWireGuardOnly nodes do not have a peer API, and instead need client DNS parameters passed in their node description. For Mullvad nodes this will contain the in network 10.64.0.1 address. Updates #9377 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
committed by
James Tucker
parent
335a5aaf9a
commit
e7727db553
@@ -8,6 +8,7 @@ package dnstype
|
||||
|
||||
import (
|
||||
"net/netip"
|
||||
"slices"
|
||||
)
|
||||
|
||||
// Resolver is the configuration for one DNS resolver.
|
||||
@@ -51,3 +52,15 @@ func (r *Resolver) IPPort() (ipp netip.AddrPort, ok bool) {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Equal reports whether r and other are equal.
|
||||
func (r *Resolver) Equal(other *Resolver) bool {
|
||||
if r == nil || other == nil {
|
||||
return r == other
|
||||
}
|
||||
if r == other {
|
||||
return true
|
||||
}
|
||||
|
||||
return r.Addr == other.Addr && slices.Equal(r.BootstrapResolution, other.BootstrapResolution)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user