Skip to content

Commit 9865dfe

Browse files
committed
intra/tunnel: info for multi-transport dns
1 parent 0c933c9 commit 9865dfe

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

intra/dns.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,14 @@ func csv2ssv(csv string) string {
291291

292292
func fetchDNSInfo(r dnsx.Resolver, id string) string {
293293
if tr, rerr := r.GetInternal(id); rerr == nil {
294-
if tr.ID() != id {
294+
tid := tr.ID()
295+
296+
if tid != id {
295297
// replace tr with the actual transport, if it is TransportMult
296298
// with one or more internal/hidden away transports.
297299
var mtr dnsx.TransportMult
298300
var err error
299-
if mtr, err = r.GetMultInternal(id); err == nil {
301+
if mtr, err = r.GetMultInternal(tid); err == nil {
300302
tr, err = mtr.GetInternal(id)
301303
}
302304
if tr == nil {
@@ -305,7 +307,6 @@ func fetchDNSInfo(r dnsx.Resolver, id string) string {
305307
}
306308

307309
var sb strings.Builder
308-
tid := tr.ID()
309310
if tid != id {
310311
sb.WriteString(id + " <<?>> " + tr.ID())
311312
} else {

0 commit comments

Comments
 (0)