30 Commits

Author SHA1 Message Date
Cayman
3813100438
fix: hanging close promise (#140) 2021-02-03 13:03:09 +01:00
Alex Potsides
d9f9912dac
chore: update deps (#134)
* chore: update deps

Upgrades to the latest multiaddrs with Uint8Arrays

Also removes redundant deps.

BREAKING CHANGES:

- The multiaddr dep used by this module returns Uint8Arrays and may
  not be compatible with previous versions

* chore: update utils

* chore: remove gh dep url
2020-08-07 18:07:34 +02:00
Jacob Heun
d76a1f27e7
feat: add path multiaddr support (#118)
* chore: update deps
* test: skip paths on windows
2019-12-06 09:42:43 +01:00
Vasco Santos
7c977d3cb1 chore: use libp2p utils for ip port to multiaddr (#116) 2019-09-24 16:35:40 +02:00
Jacob Heun
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
Alan Shaw
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
Jacob Heun
44f9e32d07
chore: update deps (#110)
* chore: add node 12 to travis
* test: just use spec files
2019-08-08 12:48:13 +02:00
Linus Unnebäck
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
Jacob Heun
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
TomCoded
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
Tom White
6c36a46831 test: fixes listen-dial test "dial and destroy on listener" (#97) 2018-07-31 13:46:12 +02:00
David Dias
b7f73bcda1 test: fix dial error test 2018-04-05 17:00:19 +01:00
David Dias
de1d7fe75c chore: tiny refactor 2018-02-07 06:40:00 +00:00
David Dias
50840a8067 test: refactor 2018-02-07 06:06:15 +00:00
David Dias
71a28bb177 test: refactor 2018-02-07 05:59:34 +00:00
David Dias
b94f9c5d51 test: refactor 2018-02-07 05:56:55 +00:00
David Dias
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
David Dias
50d6a7b7cf chre: fix linting 2017-10-13 17:17:11 +02:00
Dmitriy Ryajov
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
Friedel Ziegelmayer
4d4f295dd5 fix(dial): proper error handling on dial (#77) 2017-03-27 16:18:55 +01:00
David Dias
665b755922 chore: update aegir 2017-03-21 14:27:16 +00:00
David Dias
da8ee216e1 feat(deps): update to published deps 2016-09-06 08:31:17 -04:00
David Dias
d9f65e0b0c feat(readme): add pull-streams documentation 2016-09-05 18:31:34 -04:00
dignifiedquire
5e89a2608b feat(pull): migration to pull-streams 2016-09-05 18:31:34 -04:00
David Dias
cf0e9a1a8f use duplexify fork while PR is not up yet 2016-06-26 21:13:39 +01:00
David Dias
9ac5cca946 fix: error was passed in duplicate 2016-06-23 08:35:49 +01:00
David Dias
539a007031 comply with the latest interface-transport and interface-connection spec 2016-06-22 09:36:08 +01:00
dignifiedquire
2ed01e8f5b fix: address cr 2016-05-31 21:49:12 +02:00
David Dias
abd71d76e4 support for tcp addrs with ipfs in the end as well 2016-05-29 08:56:24 +01:00
Friedel Ziegelmayer
3f4f163f40 refactor: use aegir 2016-05-09 11:14:40 +02:00