We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b57e26 commit 60241dbCopy full SHA for 60241db
p2p/protocol/circuitv2/relay/constraints.go
@@ -74,7 +74,7 @@ func (c *constraints) AddReservation(p peer.ID, a ma.Multiaddr) error {
74
75
var asnReservations []time.Time
76
var asn string
77
- if ip.To4() == nil {
+ if ip.To4() == nil && manet.IsPublicAddr(a) {
78
asn, _ = asnutil.Store.AsnForIPv6(ip)
79
if asn != "" {
80
asnReservations = c.asns[asn]
0 commit comments