Skip to content

Commit 23f8b88

Browse files
committed
dnsx/alg: m code comments
1 parent 9d9a6fa commit 23f8b88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

intra/dnsx/alg.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ func (a *algans) merge(b *algans) {
369369

370370
// TODO: Keep a context here so that queries can be canceled.
371371
type dnsgateway struct {
372-
sync.RWMutex // locks alg, nat, octets, hexes
373-
alg map[string]*algans // domain+type -> ans
374-
nat map[netip.Addr]*baseans // algip -> baseans
375-
ptr map[netip.Addr]*baseans // primaryip -> baseans
372+
sync.RWMutex // protects alg, nat, octets, hexes
373+
alg map[string]*algans // domain+type => ans
374+
nat map[netip.Addr]*baseans // algip => baseans
375+
ptr map[netip.Addr]*baseans // primaryip => baseans
376376
octets []uint8 // ip4 octets, 100.x.y.z
377377
hexes []uint16 // ip6 hex, 64:ff9b:1:da19:0100.x.y.z
378378

0 commit comments

Comments
 (0)