We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9a6fa commit 23f8b88Copy full SHA for 23f8b88
intra/dnsx/alg.go
@@ -369,10 +369,10 @@ func (a *algans) merge(b *algans) {
369
370
// TODO: Keep a context here so that queries can be canceled.
371
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
+ sync.RWMutex // protects alg, nat, octets, hexes
+ alg map[string]*algans // domain+type => ans
+ nat map[netip.Addr]*baseans // algip => baseans
+ ptr map[netip.Addr]*baseans // primaryip => baseans
376
octets []uint8 // ip4 octets, 100.x.y.z
377
hexes []uint16 // ip6 hex, 64:ff9b:1:da19:0100.x.y.z
378
0 commit comments