clash/dns
Jiahao Lu 8f9b39c62e
Fix: potential panic in putMsgToCache (#2634)
When the upstream DNS server returns a message that contains no
questions (i.e. QDCOUNT == 0), `putMsgToCache` will trigger an
out-of-range panic.

Issue: #2524
Comment: https://github.com/Dreamacro/clash/issues/2524#issuecomment-1477477601
2023-03-21 19:36:49 +08:00
..
client.go Feature: sync missing resolver logic from premium, but still net.IP on opensource 2022-08-13 13:07:35 +08:00
dhcp.go Chore: reduce dhcp dns client cost 2022-08-24 21:36:19 +08:00
doh.go Feature: sync missing resolver logic from premium, but still net.IP on opensource 2022-08-13 13:07:35 +08:00
enhancer.go Chore: remove old cache implementation 2022-08-17 11:43:20 +08:00
filters.go Style: use gofumpt for fmt 2021-10-10 23:44:09 +08:00
middleware.go Change: remove `redir-host` as config 2023-02-01 15:19:36 +08:00
resolver.go Fix: potential panic in putMsgToCache (#2634) 2023-03-21 19:36:49 +08:00
server.go Fix: ignore empty dns server error 2022-01-05 11:41:31 +08:00
util.go Fix: potential panic in putMsgToCache (#2634) 2023-03-21 19:36:49 +08:00