26 Commits

Author SHA1 Message Date
idk
4d3452bc2a tolerate .b32.i2p if present 2019-03-29 16:36:23 -04:00
idk
fcee0ca9ec remove thing from debugging 2019-03-29 14:54:08 -04:00
idk
d288e979d6 variable-length garlic32 addresses 2019-03-29 14:52:24 -04:00
idk
dfe5099292 Fixed up validators and encoders 2019-03-29 09:40:52 -04:00
idk
056263f8b9 Start attempting to support base32 for Encrypted Leaseset Version 2, aka base33. Not likely to work yet. 2019-03-28 23:00:48 -04:00
backkem
6b421eaeda Add p2p-webrtc-direct protocol 2018-12-20 12:10:18 +01:00
idk
f60a1c99ee
unrewrite path 2018-12-18 10:24:02 -05:00
idk
b0582d3730
make suggested changes, pre-compute garlicBase64Encoding, simplify garlicValidate, check length of bytes 2018-12-18 10:22:35 -05:00
idk
ac6bfc1dd2
fix broken validation 2018-12-15 01:44:59 -05:00
idk
04300cfb45
fix unreturned fmt.Errorf 2018-12-15 01:24:59 -05:00
idk
567daf242f
made garlic64 variable-length 2018-12-13 04:53:17 -05:00
idk
0f1c1ba00d
remove garlic32 protocol 2018-11-30 22:48:29 -05:00
idk
a91caf054e
add both base64 and base32 addresses as separate protocols, remove port from addresses to be expressed as /tcp, etc. 2018-11-30 19:55:52 -05:00
idk
54ddf83b00
Switch to using base64 i2p addresses to facilitate transport 2018-11-26 05:03:37 -05:00
idk
58c18c3ad6
Switch to using base64 i2p addresses to facilitate transport 2018-11-25 15:27:27 -05:00
idk
cf7ed7c1ad
created onionv3 and garlic multiaddrs 2018-11-15 04:11:07 -05:00
Steven Allen
faf8963c9a fix zone validator
(bug caught by fuzzer)
2018-10-18 10:35:11 +01:00
Steven Allen
41068aa69c correctly format ip4-in-6 addresses
fixes part one of #77
2018-09-30 16:41:00 -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
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
Jeromy
dea70a9f19 begin transition from /ipfs/ to /p2p/ multiaddrs 2018-06-18 18:24:36 -07:00
mwnx
ae494b7f0c Fix ipv6 parser error message ("ip4" → "ip6") 2018-06-16 19:53:08 +02:00
Jakub Sztandera
72b4a6ce81
Create NewTranscoderFromFunctions function and use it 2016-11-02 17:49:29 +01:00
Jakub Sztandera
1919305418
add Transocoder functionality
Allowing multiaddr extensions to have data with
2016-10-14 11:48:19 -04:00