Browse Source

fix: DNS protocol address is not reserved (#2792)

gammazero/previous-well-known-resource
gopherfarm 6 months ago
committed by GitHub
parent
commit
b76d639690
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/host/autorelay/addrsplosion.go

2
p2p/host/autorelay/addrsplosion.go

@ -54,7 +54,7 @@ func isRelayAddr(a ma.Multiaddr) bool {
func isDNSAddr(a ma.Multiaddr) bool {
if first, _ := ma.SplitFirst(a); first != nil {
switch first.Protocol().Code {
case ma.P_DNS4, ma.P_DNS6, ma.P_DNSADDR:
case ma.P_DNS, ma.P_DNS4, ma.P_DNS6, ma.P_DNSADDR:
return true
}
}

Loading…
Cancel
Save