Fix udp timeout

This commit is contained in:
世界 2023-04-19 21:42:10 +08:00
parent ec8974673b
commit 20e9da5c67
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 14 additions and 12 deletions

View file

@ -143,7 +143,7 @@ func NewRouter(
defaultMark: options.DefaultMark,
platformInterface: platformInterface,
}
router.dnsClient = dns.NewClient(dnsOptions.DNSClientOptions.DisableCache, dnsOptions.DNSClientOptions.DisableExpire, router.dnsLogger)
router.dnsClient = dns.NewClient(ctx, dnsOptions.DNSClientOptions.DisableCache, dnsOptions.DNSClientOptions.DisableExpire, router.dnsLogger)
for i, ruleOptions := range options.Rules {
routeRule, err := NewRule(router, router.logger, ruleOptions)
if err != nil {