Skip to content

Commit 5a2d5dd

Browse files
committed
dnsx/resolver: m log origin
1 parent 7ff921d commit 5a2d5dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intra/dnsx/transport.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ runagain:
576576
run++
577577
*smm = *copySummary(ogsmm)
578578

579-
log.V("dns: fwd: 1 for %s; query %s:%d, r%d; [prefs:%v; chosen:%v]", uid, qname, qtyp, run, pref, chosenids)
579+
log.V("dns: fwd: 1 for %s (%s); query %s:%d, r%d; [prefs:%v; chosen:%v]", uid, who, qname, qtyp, run, pref, chosenids)
580580

581581
id, sid, pids, presetIPs := r.preferencesFrom(qname, uint16(qtyp), pref, chosenids...)
582582
t := r.determineTransport(id) // id may be empty if pref is nil
@@ -1144,7 +1144,7 @@ func (r *resolver) preferencesFrom(qname string, qtyp uint16, s *x.DNSOpts, chos
11441144
id1 = reqid
11451145
id2 = ""
11461146
} else if isAnyFixed(x...) || isAnyFixed(xx...) {
1147-
if id1 != Fixed { // Fixed must always be the primary transport
1147+
if id1 != Fixed && id1 != cacheprefix+Fixed { // Fixed must always be the primary transport
11481148
id2 = id1
11491149
id1 = Fixed
11501150
}

0 commit comments

Comments
 (0)