File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments