Skip to content

Commit 3dc0145

Browse files
committed
dnsx/alg: fix bugs introduced by agent runs
1 parent 9733337 commit 3dc0145

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

intra/dnsx/alg.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ func (t *dnsgateway) fromInternalCache(tid, uid string, q *dns.Msg, typ iptype)
652652
return nil, errSkipInternalCache
653653
}
654654
a, aaaa := xdns.HasAQuestion(q), xdns.HasAAAAQuestion(q)
655-
if !a || !aaaa {
655+
if !a && !aaaa {
656656
return nil, errNilCacheResponse
657657
}
658658

@@ -1850,8 +1850,8 @@ func ChooseHealthyProxy(who string, ipps []netip.AddrPort, pids []string, px ipn
18501850
if !ipp.IsValid() {
18511851
continue
18521852
}
1853-
if px, err := px.ProxyTo(ipp, protect.UidSelf, pids); err == nil {
1854-
pid = proxyID(px)
1853+
if p, err := px.ProxyTo(ipp, protect.UidSelf, pids); err == nil {
1854+
pid = proxyID(p)
18551855
foundProxy = pid != NetNoProxy
18561856
cipp = ipp
18571857
break

0 commit comments

Comments
 (0)