mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-02 21:13:12 +00:00
Currently IsIPLoopback returns true for any multiaddr starting ip4/127, but only returns true on ip6 addresses that exactly equal ip6/::1. So /ip6/::1/tcp/4001 for example does not return true. Instead we should check whether ip6/::1 is contained in the multiaddr, and to do that I simply decapsulated and checked to see if the result is different. It seems this was not caught by tests as none are present specifically for this function.
go-multiaddr-net
multiaddr net tools
This package provides Multiaddr specific versions of common functions in stdlib's net package. This means wrappers of standard net symbols like net.Dial and net.Listen, as well
as conversion to and from net.Addr.
Table of Contents
Install
go get github.com/multiformats/go-multiaddr-net
Usage
See the docs:
multiaddr/net: https://godoc.org/github.com/multiformats/go-multiaddr-netmultiaddr: https://godoc.org/github.com/multiformats/go-multiaddr
Maintainers
Captain: @whyrusleeping.
Contribute
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2014 Juan Batiz-Benet
Description
Languages
Go
100%