mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 02:22:21 +08:00
Fix default dns server option (#9)
This commit is contained in:
parent
0e6b4df8f1
commit
ccdfab378a
|
@ -217,9 +217,9 @@ func NewRouter(ctx context.Context, logger log.ContextLogger, dnsLogger log.Cont
|
|||
}
|
||||
var defaultTransport dns.Transport
|
||||
if dnsOptions.Final != "" {
|
||||
defaultTransport = dummyTransportMap[options.Final]
|
||||
defaultTransport = dummyTransportMap[dnsOptions.Final]
|
||||
if defaultTransport == nil {
|
||||
return nil, E.New("default dns server not found: ", options.Final)
|
||||
return nil, E.New("default dns server not found: ", dnsOptions.Final)
|
||||
}
|
||||
}
|
||||
if defaultTransport == nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user