d76a1f27e7
feat: add path multiaddr support ( #118 )
...
* chore: update deps
* test: skip paths on windows
2019-12-06 09:42:43 +01:00
7702646cfa
fix(log): log the bound port and host ( #117 )
2019-10-02 16:49:13 +02:00
7c977d3cb1
chore: use libp2p utils for ip port to multiaddr ( #116 )
2019-09-24 16:35:40 +02:00
605ee279ae
fix: ensure timeline.close is set ( #113 )
...
* fix(test): dns4 isnt a valid tcp multiaddr
It should be resolved first
* fix: ensure timeline.close is set on the multiaddrConn
* chore: add docs to gitignore
They are generated and uploaded on release
2019-09-19 15:20:54 +02:00
cf7d1b8501
feat: change api to async / await ( #112 )
...
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await. The API has also been updated according to the latest `interface-transport` version, https://github.com/libp2p/interface-transport/tree/v0.6.0#api .
2019-09-16 17:19:47 +02:00
4b04b17dfa
fix: invalid ip address and daemon can be crashed by remote user
...
Per the nodeJS documentation, a Net socket.remoteAddress value may
be undefined if the socket is destroyed, as by a client disconnect.
A multiaddr cannot be created for an invalid IP address (such as
the undefined remote address of a destroyed socket). Currently
the attempt results in a crash that can be triggered remotely. This
commit catches the exception in get-multiaddr and returns an
undefined value to listener rather than throwing an exception when
trying to process defective or destroyed socket data. Listener then
terminates processing of the incoming p2p connections that generate
this error condition.
fixes: https://github.com/libp2p/js-libp2p-tcp/issues/93
fixes: https://github.com/ipfs/js-ipfs/issues/1447
2018-07-31 13:51:27 +02:00
ded1f6831c
feat: add class-is module
2018-04-05 16:55:54 +01:00
de1d7fe75c
chore: tiny refactor
2018-02-07 06:40:00 +00:00
9c77a69ae3
chore: tiny refactor
2018-02-07 06:26:02 +00:00
f8f52665f7
fix: clearing timeout when closes ( #87 )
2018-02-07 05:43:15 +00:00
11c4f451f4
feat: relay filtering
...
* feat: filter IPFS addrs correctly
* feat: mafmt addrs now support /ipfs no need for ad-hoc filtering
* feat: skip p2p-circuit addresses
2017-10-13 17:13:28 +02:00
a54bb83657
feat: p2p addrs situation ( #82 )
...
* chore: update gitignore
* chore: update CI configs
* chore: update deps
* chore: small refactor
2017-09-03 10:01:16 +01:00
e204517a51
fix: catch errors on incomming sockets
2017-04-07 11:51:56 -04:00
fb382a3e2a
codestyle: fix linting
2017-03-27 16:21:26 +01:00
4d4f295dd5
fix(dial): proper error handling on dial ( #77 )
2017-03-27 16:18:55 +01:00
49e23f1961
refactor: use lodash.includes
instead of lodash.contains
...
As `loadash.contains` is deprecated.
2016-12-04 13:28:18 +01:00
d9f65e0b0c
feat(readme): add pull-streams documentation
2016-09-05 18:31:34 -04:00
5e89a2608b
feat(pull): migration to pull-streams
2016-09-05 18:31:34 -04:00
cba4b8b94a
pass the err on the callback too
2016-06-23 08:41:54 +01:00
9ac5cca946
fix: error was passed in duplicate
2016-06-23 08:35:49 +01:00
539a007031
comply with the latest interface-transport and interface-connection spec
2016-06-22 09:36:08 +01:00
2ed01e8f5b
fix: address cr
2016-05-31 21:49:12 +02:00
4a121696d1
fix: destroy hanging connections after timeout
2016-05-31 14:48:18 +02:00
abd71d76e4
support for tcp addrs with ipfs in the end as well
2016-05-29 08:56:24 +01:00
3f4f163f40
refactor: use aegir
2016-05-09 11:14:40 +02:00
749db165ce
do not callback with error on no listeners to close
2016-05-08 21:50:03 +01:00
c253a44f59
switch from throw to send err to callback
2016-04-25 02:13:49 +01:00
b43f6ffb6f
Makes callback optional on close.
2016-04-21 15:56:38 -07:00
6d1b729fcd
Removes unused options param.
2016-04-21 15:36:39 -07:00
4499bba514
add filter feature
2016-03-14 16:57:54 +00:00
77600d3a8b
add getObservedAddrs feature to every returned conn
2016-03-10 10:24:48 +00:00
500ca9b699
done
2016-03-04 23:26:28 +00:00
0b6361e27a
multiple listeners, more tests, understand multiaddr on the listen function
2016-03-04 19:02:25 +00:00
470d8bfc6a
after many solo-bikeshedding, figured out that I could make it way simpler
2015-09-15 19:43:55 +01:00
7e2e383f1b
1st iteration
2015-09-15 19:08:19 +01:00