mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-02 21:13:12 +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
|
||||
// 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 {
|
||||
b := m.Bytes()
|
||||
for _, prefix := range loopbackPrefixes {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user