Jack Kleeman ee4ab58778 Check for local ip6 addresses with more flexbility
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.
2017-03-26 13:33:16 +01:00
2017-03-23 18:44:26 -07:00
2016-04-26 17:11:49 -07:00
2016-04-26 17:11:49 -07:00
2014-11-05 00:38:21 -08:00
2014-11-19 13:51:41 -08:00
2016-04-26 17:11:49 -07:00
2017-03-23 18:45:49 -07:00
2016-09-19 10:30:07 +08:00
2017-03-23 18:44:26 -07:00
2016-12-26 15:29:30 -05:00

go-multiaddr-net

Travis CI codecov.io

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:

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
Composable and future-proof network addresses
https://github.com/multiformats/multiaddr
Readme MIT
Languages
Go 100%