463 Commits

Author SHA1 Message Date
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
Steven Allen
6a3fc2bc0c Merge pull request #59 from multiformats/feat/test-bytes
Add test for Bytes()
2017-10-22 10:07:33 -07:00
Lars Gierth
b11b0e541e Add test for Bytes() 2017-10-22 17:18:59 +01:00
Jeromy Johnson
f5c34dfc88 Merge pull request #56 from multiformats/feat/perf
preallocate protocol slice
2017-09-20 18:40:42 -07:00
Steven Allen
d814073552 remove debugging code
no point in slowing things down unnecessarily just for some debugging code.
2017-09-20 18:19:29 -07:00
Steven Allen
6362ccb0d2 preallocate protocol slice
This was showing up on CPU profiles as a significant source of repeated
allocations. We don't really care about over allocation (don't keep these slices
around) and should rarely have more than 8 protocols in a single address.
2017-09-20 18:17:12 -07:00
Lars Gierth
376ba58703 Merge pull request #31 from multiformats/feat/udp
Added UDP datagram packet connection support.
2017-08-13 05:35:25 +02:00
Tom Swindell
49f84c7c45 Added UDP datagram packet connection support.
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-08-13 04:50:23 +02:00
Steven Allen
6addc7f583 Merge pull request #54 from Stebalien/fix/table
Fix protocol multicodecs numbers
2017-07-30 19:56:20 -07:00
Steven Allen
1a9014dbd5 ci: update travis go version to 1.8 2017-07-30 19:50:27 -07:00
Steven Allen
a8637d432a Change QUIC multicodec to a unique number
It conflicted with CBOR.

part of multiformats/multicodec#55
2017-07-30 19:50:20 -07:00
Steven Allen
71c1bfde36 Fix protocol multicodecs numbers
1. Swap udt/utp.
2. Fix udp (17 is SHA1)
3. Change them to hex so it's easier to compare them with the official
   multicodec table.
4. Remove the local protocols.csv table.

Fixes #49
Fixes multiformats/multicodec#51
2017-07-20 14:39:12 -07:00
Jakub Sztandera
c31e9eec23 Merge pull request #47 from tabrath/fix/codecov
Switched to codecov
2017-07-19 21:40:21 +02:00
Jakub Sztandera
f41dec4bb7 Disable OSX
It is slow and causes queue in whole org.
2017-07-11 19:48:49 +02:00
Jeromy
e58d9b98b9 gx publish 1.5.5 2017-07-11 10:30:33 -07:00
Jeromy
6c0f82541b gx publish 1.2.4 2017-07-10 23:10:15 -07:00
Jakub Sztandera
a7b93d1185 Merge pull request #27 from jackkleeman/patch-1
Check for local ip6 addresses with more flexbility
2017-03-28 18:08:41 +02:00
Jakub Sztandera
2b541b7fc2 Merge pull request #26 from multiformats/docs-improvements
README/docs: Improved README, make golint happy
2017-03-28 18:07:09 +02:00
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
Jeromy
6c6b26b274 fix go vet issue 2017-03-23 18:45:49 -07:00
Jeromy
c35c6b25b9 gx publish 1.5.4 2017-03-23 18:44:26 -07:00
Jeromy
33741da7b3 gx publish 1.2.2 2017-03-23 18:43:16 -07:00
Jeromy
8a7f50dbc5 gx publish 1.5.3 2017-03-21 15:20:26 -07:00
Jeromy
168733adeb gx publish 1.2.1 2017-03-18 17:13:16 -07:00
Jeromy
c69ec140a5 update go-multihash dep 2017-03-18 13:41:42 -07:00
Jeromy Johnson
7debba7a9f Merge pull request #48 from marten-seemann/master
add QUIC
2017-03-17 22:22:04 -07:00
Hector Sanjuan
1c4b9a62de README/docs: Improved README, make golint happy
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-03-17 15:36:06 +01:00
Marten Seemann
22c78388e2
add QUIC 2017-03-17 13:26:26 +07:00
Trond Bråthen
525acb7bc4 switched to codecov 2017-02-25 11:25:18 +01:00
Jeromy
1854460b37 gx publish 1.5.2 2017-02-01 20:32:54 -08:00
Jeromy
217f15fd01 updating go-multihash 2017-02-01 20:32:49 -08:00
Jeromy
5ea81f9b8a gx publish 1.1.3 2017-02-01 20:25:00 -08:00
Jeromy
23ad6db6f8 updating go-multihash 2017-02-01 20:24:58 -08:00
Lars Gierth
86dfe50a09 Merge pull request #44 from multiformats/feat/standard-readme
Edit Badges
2017-01-06 23:56:01 +01:00
Lars Gierth
ac78277d26 Merge pull request #25 from multiformats/feat/standard-readme
Edit badges, fix links
2017-01-06 23:55:29 +01:00
Richard Littauer
149f0b2bcc Edit badges, fix links
Edit badges, fixed https links, added Travis and Codecov, capitalized README, added year to license
2016-12-26 15:29:30 -05:00
Richard Littauer
ba3944e3b7 Edit Badges
Edit https links, add Travis and CodeCov.
2016-12-26 15:18:42 -05:00
Jeromy Johnson
3fb0c32e7a Merge pull request #42 from multiformats/feat/transcoders
add Transocoder functionality
2016-12-17 13:17:37 -08:00
Jakub Sztandera
72b4a6ce81
Create NewTranscoderFromFunctions function and use it 2016-11-02 17:49:29 +01:00
Jakub Sztandera
b23eb95805 Merge pull request #27 from RichardLitt/feature/readme
Added badges, contribute, license, and fixed addr to ma
2016-10-21 20:57:32 +02:00