8 Commits

Author SHA1 Message Date
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