Commit Graph

44 Commits

Author SHA1 Message Date
Pavel Karpy 99477a348c feat: add TLS protocol 2021-05-26 16:04:06 +03:00
Steven Allen 7bffa37597 feat: add wss protocol
Now that we define all protocols in this package, we might as well add wss.

fixes #72
2020-02-28 18:58:05 -08:00
Steven Allen 438f18c3f9 feat: switch to /p2p multiaddrs by default 2019-11-01 14:22:21 -07:00
Steven Allen a088a4a5ef feat: add dns support
This is a defacto standard and is used by js-libp2p.

Ported from https://github.com/multiformats/go-multiaddr-dns/pull/17.
This was decided in https://github.com/multiformats/multiaddr/issues/22.
2019-09-18 17:13:14 -07:00
godcong bbcf5cbbc5 move dns protocol definitions (3974bf3f84/dns.go (L11)) 2019-09-18 14:19:59 +08:00
godcong 0550a5ba36 move ws protocol definitions (ec8d1818a2/websocket.go (L23)) 2019-09-18 14:07:40 +08:00
godcong c80d054253 move protocol definitions (https://github.com/libp2p/go-libp2p-circuit/blob/master/transport.go#L13-L24) 2019-09-18 13:53:31 +08:00
idk 71e227b59a correct the protocol codes for garlic addresses 2019-04-05 15:15:05 -04:00
idk d288e979d6 variable-length garlic32 addresses 2019-03-29 14:52:24 -04:00
Raúl Kripalani 794e406662
remove stale TODO. 2019-02-27 12:10:50 +00:00
backkem 6b421eaeda Add p2p-webrtc-direct protocol 2018-12-20 12:10:18 +01: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 684664541d
switch back to P_ONION and remove P_ONION2 alias 2018-11-30 20:09:02 -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 cf7ed7c1ad
created onionv3 and garlic multiaddrs 2018-11-15 04:11:07 -05: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 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 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 b68c4a264d go fmt 2018-06-22 13:28:00 -07:00
Jeromy dea70a9f19 begin transition from /ipfs/ to /p2p/ multiaddrs 2018-06-18 18:24:36 -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
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
Marten Seemann 22c78388e2
add QUIC 2017-03-17 13:26:26 +07:00
Jakub Sztandera 1919305418
add Transocoder functionality
Allowing multiaddr extensions to have data with
2016-10-14 11:48:19 -04:00
jbenet bdf3e3a444 added unix path protocol 2016-09-19 11:06:27 +08:00
Ian Preston e32e9cd0f0 Implemented byte decoder for onion addresses. Corrected onion bit size. 2016-08-09 19:21:28 +01:00
Jeromy 9c4a0baf6d cleanup panics and make NewFromBytes faster 2016-04-29 14:16:41 -07:00
Jeromy b185168cd2 modularize multiaddr protocols 2016-01-17 01:28:18 -08:00
David Stainton 3bc1e2e8c3 Onions are 80 bits 2015-09-26 01:36:31 +02:00
David Stainton 0e7ae0d2ee Renamed tor to onion and added embedded port field 2015-08-31 03:19:47 +02:00
David Stainton ed310561bd Add Tor .onion address support and unit test cases 2015-08-29 19:48:07 +02:00
Juan Batiz-Benet f529ec7884 added http, https, and ipfs protocols 2015-01-17 21:12:54 -08:00
Juan Batiz-Benet 32d9d68b64 ProtocolsWithString 2015-01-09 05:51:16 -08:00
Juan Batiz-Benet 17f4666d01 Protocols now value 2015-01-09 05:37:39 -08:00
Juan Batiz-Benet 59f6cfc921 implement varints + add utp, udt 2014-11-19 13:02:06 -08:00
Juan Batiz-Benet b90678896b go lint + unexporting some funcs 2014-09-11 10:47:56 -07:00
Juan Batiz-Benet 99196c0d23 dialing + consts 2014-07-07 01:25:20 -07:00
Juan Batiz-Benet 9033141fca gofmt 2014-07-04 11:21:39 -07:00
Juan Batiz-Benet e20c5b9d3b protocols 2014-07-04 00:12:33 -07:00
Juan Batiz-Benet c5510ff4b8 string <> []byte 2014-07-03 23:42:24 -07:00