Skip to content

Commit 09f2625

Browse files
committed
Export DNS OSConfigurator
1 parent ababac4 commit 09f2625

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tsnet/tsnet.go

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
"github.com/sagernet/tailscale/logpolicy"
4242
"github.com/sagernet/tailscale/logtail"
4343
"github.com/sagernet/tailscale/logtail/filch"
44+
"github.com/sagernet/tailscale/net/dns"
4445
"github.com/sagernet/tailscale/net/dnscache"
4546
"github.com/sagernet/tailscale/net/memnet"
4647
"github.com/sagernet/tailscale/net/netmon"
@@ -125,6 +126,7 @@ type Server struct {
125126

126127
Dialer N.Dialer
127128
LookupHook dnscache.LookupHookFunc
129+
DNS dns.OSConfigurator
128130

129131
getCertForTesting func(*tls.ClientHelloInfo) (*tls.Certificate, error)
130132

@@ -567,6 +569,7 @@ func (s *Server) start() (reterr error) {
567569

568570
s.dialer = &tsdial.Dialer{Logf: tsLogf, Dialer: s.Dialer} // mutated below (before used)
569571
eng, err := wgengine.NewUserspaceEngine(tsLogf, wgengine.Config{
572+
DNS: s.DNS,
570573
ListenPort: s.Port,
571574
NetMon: s.netMon,
572575
Dialer: s.dialer,

0 commit comments

Comments
 (0)