Steven Allen
a80cfc331f
gx publish 1.3.1
2018-09-24 02:07:54 -07:00
Steven Allen
8988e82d78
Merge pull request #69 from mwnx/ip6z
...
Add "ip6%" multiaddr (IPv6 with zone ID)
2018-09-24 09:03:16 +00: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
6f084e635d
validate ipv6 zone
2018-09-14 18:51:03 -07:00
mwnx
1f9df061aa
Add "zone" multiaddr (IPv6 zone)
...
See [rfc4007].
Can be prefixed to "ip6" like so:
/zone/eth0/ip6/fe80::1
This corresponds to the rfc4007 address `fe80::1%eth0`
[rfc4007] https://tools.ietf.org/html/rfc4007
2018-09-14 18:41:48 -07:00
Steven Allen
de7d6d8195
Merge pull request #75 from overbool/docs/modify-readme
...
docs(README): modify readme
2018-09-14 16:00:47 +00:00
Overbool
c7b4679a01
docs(README): modify readme
2018-09-14 22:13:38 +08:00
Steven Allen
d6ad8896de
Merge pull request #73 from multiformats/feat/better-protocol
...
add protocol by code map
2018-07-21 00:31:18 +00:00
Steven Allen
1ae1320955
refactor the protocol definition files
...
Also use `AddProtocol` for *all* protocols (even predefined ones).
2018-07-18 09:09:29 -07:00
Steven Allen
cba4f9fea8
gx publish 1.6.3
2018-06-26 16:23:19 -07:00
Steven Allen
6688376452
unexport ProtocolsByName and add protocolsByCode
2018-06-26 14:53:06 -07:00
Steven Allen
47e3ab13b2
validate protocol definition in add protocol
2018-06-22 18:34:55 -07:00
Steven Allen
ece734f18d
remove redundant case
2018-06-22 18:32:03 -07:00
Steven Allen
9680498266
Merge pull request #71 from multiformats/fix/panic
...
fully validate multiaddr byte representations on construction
2018-06-22 21:55:16 +00:00
Steven Allen
2b4e098f3e
gx publish 1.3.0
2018-06-22 14:36:39 -07:00
Steven Allen
1fc094e0e0
explicitly throw away impossible write errors
2018-06-22 14:31:41 -07:00
Steven Allen
1e80322cf0
add test case for panic
2018-06-22 13:29:31 -07:00
Steven Allen
1e4c6be785
fully validate p2p addresses when decoding from bytes
...
Otherwise, .String() can panic.
2018-06-22 13:29:31 -07:00
Steven Allen
5416c663d5
simplify variable-length argument handling
...
Instead of having the transformers deal with variable length argument prefixes,
just do this in the bytesToString/stringToBytes functions.
2018-06-22 13:29:31 -07:00
Steven Allen
b68c4a264d
go fmt
2018-06-22 13:28:00 -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
Steven Allen
84fb105635
Merge pull request #66 from multiformats/feat/p2p-transition
...
begin transition from /ipfs/ to /p2p/ multiaddrs
2018-06-19 01:34:16 +00:00
Steven Allen
7f59fc3f88
add tests for /p2p addrs
2018-06-18 18:31:18 -07:00
Steven Allen
a778a9db10
add a round-trip test
2018-06-18 18:27:39 -07:00
Jeromy
dea70a9f19
begin transition from /ipfs/ to /p2p/ multiaddrs
2018-06-18 18:24:36 -07:00
Steven Allen
997959a3cb
Merge pull request #68 from mwnx/master
...
Two small bugfixes
2018-06-16 20:42:20 +00:00
Steven Allen
b9548e77d7
bump minimum go version to 1.10
2018-06-16 13:35:24 -07:00
mwnx
7bf24dca81
Fix CodeToVarint []byte size
...
We were missing a logarithm... CodeToVarint would previously allocate
more bytes than necessary (exponentially) for the varint slice. This bug
was silent but deserves to be fixed nonetheless.
2018-06-16 19:53:08 +02:00
mwnx
ae494b7f0c
Fix ipv6 parser error message ("ip4" → "ip6")
2018-06-16 19:53:08 +02:00
Steven Allen
8792ba0a88
gx publish 1.6.1
2018-06-08 20:23:09 -07:00
Steven Allen
f36800afeb
gx publish 1.2.7
2018-06-08 20:23:07 -07:00
Steven Allen
418f115760
Merge pull request #37 from multiformats/feat/refactor
...
turn NetListener() method on listener interface into a helper method
2018-06-06 07:13:14 +00:00
Steven Allen
2f3005bbc1
gx publish 1.6.0
2018-03-10 13:04:48 -08:00
Steven Allen
fad8780c0c
add test for netlistener wrapper/unwrapper
2018-03-08 13:36:43 -08:00
Steven Allen
1e79033a77
turn NetListener() method on listener interface into a helper method
...
This method made implementing the manet.Listener interface annoying. Also, this
lets us drop the "use with caution" warning as we're now *wrapping* the listener
instead of exposing internal state.
2018-03-08 13:36:43 -08:00
Steven Allen
97d80565f6
Merge pull request #38 from multiformats/feat/fast-loopback-check
...
Make the IP loopback check faster
2018-03-08 21:36:10 +00:00
Steven Allen
ef7ebf9dd8
rename, comment, and move loopback prefixes
...
Helps readers understand what they're looking at.
2018-03-08 13:34:36 -08:00
Steven Allen
d1762038d1
improve test cases for IsIPLoopback
2018-03-08 12:57:53 -08:00
Steven Allen
9d1c543b50
Make the IP loopback check faster
...
Decapsulate currently allocates a lot and this appears to have been causing some
issues (hard to tell, pprof is misbehaving).
Note: I removed the TODO as this function now *only* checks if we're dealing
with a loopback address. Not sure what `OverIPLoopback` was supposed to mean.
Note 2: Decapsulate actually checked if the IP6 loopback addresses
appeared *anywhere* in the multiadder. However, as we weren't doing this for
IP4, I decided to simplify this and only check prefixes.
2018-03-08 12:52:30 -08:00
Lars Gierth
9feee519c3
Make PacketConn more idiomatic and direct
2018-03-03 21:19:40 -05:00
Hector Sanjuan
6040dff26d
Merge pull request #35 from multiformats/fix/travis
...
use standard travis-ci scripts and enable sudo
2018-01-26 10:18:37 +01:00
Steven Allen
eb7107a2fa
use standard travis-ci scripts and enable sudo
...
This should fix CI.
Supersedes #34 .
2018-01-25 15:32:05 -08:00
Steven Allen
28713befbf
gx publish 1.5.7
2018-01-19 20:51:00 -08:00
Steven Allen
123a717755
gx publish 1.2.6
2018-01-19 20:50:56 -08:00
Steven Allen
4ce984eed7
gx publish 1.5.6
2017-12-04 23:32:49 +00:00
Whyrusleeping
781e075f3d
Merge pull request #61 from multiformats/gx/update-5osgb9
...
gx: update go-multihash
2017-12-04 20:10:07 +01:00
Steven Allen
fb72fb2a8e
gx publish 1.2.5
2017-12-03 20:35:08 -08:00