Commit Graph

28 Commits

Author SHA1 Message Date
1eca9d656e test: use port 0
docs: add some more jsdocs

License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-04-19 11:00:51 +02:00
431219db93 feat: support listen on array
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-04-18 15:32:00 +02:00
776a5246b5 test: add async/await tests 2019-04-12 15:53:17 +08:00
65c1888f54 feat: cancel dials with AbortController 2019-04-12 11:41:36 +08:00
6cf8f71d10 chore: callbacks -> async / await
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
2019-04-04 09:12:00 -04:00
3ab43a3604 chore: prefer const over let (#99)
Prefer const over let when the binding is static, in order to comply with an upcoming Standard rule.
2018-10-31 08:35:55 +00:00
eba0b48744 feat: add support for dialing over dns
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2018-09-12 19:38:02 +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
6c36a46831 test: fixes listen-dial test "dial and destroy on listener" (#97) 2018-07-31 13:46:12 +02:00
b7f73bcda1 test: fix dial error test 2018-04-05 17:00:19 +01:00
de1d7fe75c chore: tiny refactor 2018-02-07 06:40:00 +00:00
50840a8067 test: refactor 2018-02-07 06:06:15 +00:00
71a28bb177 test: refactor 2018-02-07 05:59:34 +00:00
b94f9c5d51 test: refactor 2018-02-07 05:56:55 +00:00
533835d22f test: do not run IPv6 tests on CI (#86)
* test: do not run IPv6 tests on CI

* Updating CI files (#83)

This commit updates all CI scripts to the latest version

* chore: use env variable instead

* skip the other IPv6 tests
2018-01-12 12:27:39 +00:00
50d6a7b7cf chre: fix linting 2017-10-13 17:17:11 +02: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
4d4f295dd5 fix(dial): proper error handling on dial (#77) 2017-03-27 16:18:55 +01:00
665b755922 chore: update aegir 2017-03-21 14:27:16 +00:00
da8ee216e1 feat(deps): update to published deps 2016-09-06 08:31:17 -04: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
cf0e9a1a8f use duplexify fork while PR is not up yet 2016-06-26 21:13:39 +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
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