Skip to content

Commit

Permalink
fix: DNS protocol address is not reserved (#2792)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynxg committed May 16, 2024
1 parent a86d94e commit b76d639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/autorelay/addrsplosion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b76d639

Please sign in to comment.