mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-03 21:43:06 +00:00
fix IsIPLoopback comment
This commit is contained in:
parent
fe3aa6e2cf
commit
5d0dbe0fb9
2
ip.go
2
ip.go
@ -60,7 +60,7 @@ func IsThinWaist(m ma.Multiaddr) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// IsIPLoopback returns whether a Multiaddr is a "Loopback" IP address
|
// IsIPLoopback returns whether a Multiaddr is a "Loopback" IP address
|
||||||
// This means either /ip4/127.*.*.*, /ip6/::1, or /ip6/fe80::1
|
// This means either /ip4/127.*.*.*, /ip6/::1, or /ip6/::ffff:127.*.*.*.*
|
||||||
func IsIPLoopback(m ma.Multiaddr) bool {
|
func IsIPLoopback(m ma.Multiaddr) bool {
|
||||||
b := m.Bytes()
|
b := m.Bytes()
|
||||||
for _, prefix := range loopbackPrefixes {
|
for _, prefix := range loopbackPrefixes {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user