147 Commits

Author SHA1 Message Date
Jakub Sztandera
bd61b0499a
Merge pull request #53 from multiformats/feat/gomod
Add go mod
2019-02-27 13:29:21 +01:00
Hector Sanjuan
02c82810b0
Merge pull request #54 from multiformats/gx/update-qtg73x
gx publish 1.7.2
2019-02-26 20:18:56 +00:00
Hector Sanjuan
d8ff19bf5f gx publish 1.7.2 2019-02-26 19:54:40 +00:00
Jakub Sztandera
32d315c3a1 Add go mod 2019-02-26 19:37:06 +01:00
Jakub Sztandera
c8d587e921
Merge pull request #52 from multiformats/fix/captain
README: remove out of date captain
2019-02-25 14:43:06 +01:00
Steven Allen
fe469eea48 README: remove out of date captain 2018-12-10 13:12:12 -08:00
Cole Brown
c75d1cac17 gx publish 1.7.1 2018-12-04 17:51:49 -05:00
Cole Brown
e5b3325eab Bump multiaddr dependencies 2018-12-04 17:51:34 -05:00
Cole Brown
7eb8e2dd26 gx publish 1.7.0 2018-12-04 17:45:58 -05:00
bigs
1879060a4f
Merge pull request #50 from multiformats/feat/unix-sockets
Add support for unix sockets
2018-12-04 10:31:14 -05:00
Cole Brown
a86fb2b318 Update docstring of DialArgs 2018-12-04 10:21:33 -05:00
Hector Sanjuan
0959afa0a5
Merge pull request #51 from multiformats/gx/1.6.7
gx publish 1.6.7
2018-12-03 18:28:24 +01:00
Hector Sanjuan
d925020f4e gx publish 1.6.7
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-03 18:26:38 +01:00
Cole Brown
f03b69ca9b Add support for unix sockets 2018-11-30 19:40:21 -05:00
Steven Allen
ef212b5194
Merge pull request #49 from multiformats/feat/support-dns-in-DialArgs
Feat: support hostnames in DialArgs() function
2018-11-29 20:08:02 -08:00
Hector Sanjuan
3504e962a0 Mention that we do not support unix* return values in DialArgs.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-28 16:17:16 +01:00
Hector Sanjuan
0bd5f16380 Feat: support hostnames in DialArgs() function
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-22 19:53:48 +01:00
Steven Allen
f0af403363 Merge branch 'gx/update-fzw9j3' 2018-11-02 16:06:54 -07:00
Steven Allen
f83281a88b gx publish 1.6.6 2018-11-02 15:54:36 -07:00
Steven Allen
5b127b903d gx publish 1.6.5 2018-10-24 09:18:40 -07:00
Steven Allen
e67650e7e3
Merge pull request #48 from multiformats/fix/is-ip-starts-with
make the Is* commands only check if addrs start with
2018-10-24 09:18:23 -07:00
Steven Allen
a7b912ae71 make the Is* commands only check if addrs start with
It turns out we *were* relying on this. Furthermore, this is generally more
useful (especially given ip6zones).
2018-10-24 09:09:25 -07:00
Steven Allen
4ae0494b14 gx publish 1.6.4 2018-10-24 08:57:56 -07:00
vyzo
86e5d145c9
Merge pull request #42 from mwnx/ip6z
Add "ip6%" multiaddr support (IPv6 with zone ID)
2018-10-21 17:56:03 +03:00
mwnx
a1defdc5aa Fully implement ip6zone support
- Add `FromIPAndZone` function (complementing the `FromIP` function).
- Handle zones when parsing `net.Addr`s.
- In `DialArgs`, return an error if an `ip6zone` is prefixed to an `ip4`
  or to another `ip6zone`.

Note: I was not able to add a listen test (in TestListenAddrs) for
`/zone/.../ip6/...` since there is no link-local address which is
guaranteed to exist on all systems.
2018-10-21 14:46:38 +02:00
Steven Allen
3ce601caf3
Merge pull request #46 from multiformats/feat/private-net
private networks and utility functions
2018-10-18 14:15:32 +01:00
Steven Allen
115f321e21 test to make sure we only consider addresses that *start* with IP addresses
(would have failed with ValueForProtocol)
2018-10-18 14:00:36 +01:00
Steven Allen
0425819f0e use the new multiaddr utilities in IsPublicAddr/IsPrivateAddr
This now means that addresses must *start* with the an IP address, we won't just
pull one out of the middle.
2018-10-18 13:59:24 +01:00
vyzo
7b43167897 fix typo 2018-10-18 13:43:48 +01:00
vyzo
c2b139aab4 test all known unroutable address ranges in IsPublicAddr 2018-10-18 13:43:48 +01:00
vyzo
2945cfc2e6 add IsPrivateAddr 2018-10-18 13:43:48 +01:00
vyzo
49e7bdea20 add test 2018-10-18 13:43:48 +01:00
vyzo
984c8ac58b private networks and IsPublicAddr 2018-10-18 13:43:48 +01:00
Steven Allen
2503d99944
Merge pull request #47 from multiformats/feat/use-mulitaddr-parsers
use multiaddr parsers
2018-10-18 12:56:35 +01:00
Steven Allen
d2517ac772 gx: update go-multiaddr 2018-10-18 11:21:41 +01:00
Steven Allen
9be5ad695f test DialArgs changes 2018-10-18 11:18:58 +01:00
Steven Allen
50cc0e47d1 robust DialArgs 2018-10-18 11:14:05 +01:00
Steven Allen
5bd241dcaf use NewComponent in FromIP
This allows us to do less string-parsing.
2018-10-18 10:18:31 +01:00
Steven Allen
03e871bdbe fix loopback/link-local checks
1. Ensure we check the entire addr, not just a prefix.
2. Make the LinkLocal test skip zones.
3. Consider link-local multicast to be link-local.
4. Defer to *go* to determine if something is, in fact, a loopback/link-local address.
2018-10-17 22:01:57 +01:00
Steven Allen
3895ff188b gx: update go-multiaddr 2018-10-17 22:01:47 +01:00
Steven Allen
1cb9a0e8a6
Merge pull request #40 from multiformats/fix/39
fix loopback addresses
2018-10-01 00:38:29 +00:00
Steven Allen
5d0dbe0fb9 fix IsIPLoopback comment 2018-09-30 17:16:44 -07:00
Steven Allen
fe3aa6e2cf ci: update to go 1.11 2018-09-30 17:13:30 -07:00
Steven Allen
f3041fd8a9 fix loopback addresses
* fe80::1 is not a loopback address
* ::ffff:127.* probably is (IPv4-mapped IPv6)
2018-09-30 16:33:41 -07:00
Steven Allen
ceed2dc9f0
Merge pull request #44 from multiformats/fix/parse-ip-addr
fix converting net.IPAddr to a multiaddr
2018-09-15 21:07:34 +00:00
Steven Allen
bd10f58ac9 replace RegisterNetCodc with Register{From,To}NetAddr and fix ip addr parsing
Unfortunately, the existing abstraction couldn't handle the fact that the "ip"
net could parse to *either* an "/ip4/" or "/ip6/" multiaddr.
2018-09-14 19:36:25 -07:00
Steven Allen
cba4f9fea8 gx publish 1.6.3 2018-06-26 16:23:19 -07:00
Steven Allen
4d4b901d17 gx publish 1.6.2 2018-06-22 11:00:57 -07:00
Steven Allen
31e031dc0d
Merge pull request #43 from multiformats/feat/expose-half-close
expose methods from underlying connection types
2018-06-22 18:00:18 +00:00
Steven Allen
a109f8da85 expose methods from underlying connection types
This sucks but I can't think of a better way to do this. We really do want to
expose these features and doing so through type assertions is very go-like.
2018-06-21 14:20:01 -07:00