mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +00: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
|
var defaultTransport dns.Transport
|
||||||
if dnsOptions.Final != "" {
|
if dnsOptions.Final != "" {
|
||||||
defaultTransport = dummyTransportMap[options.Final]
|
defaultTransport = dummyTransportMap[dnsOptions.Final]
|
||||||
if defaultTransport == nil {
|
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 {
|
if defaultTransport == nil {
|
||||||
|
|
Loading…
Reference in a new issue