Commit Graph

214 Commits

Author SHA1 Message Date
Jacob Heun
d65f3ce228 fix: update compliance tests for latest interface-transport
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-09-06 11:22:44 +02:00
Jacob Heun
0d1c454ce0 chore: add coverage scripts
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-08-19 14:32:07 +02:00
Jacob Heun
3b162207b0 chore: update dependencies
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-08-19 14:29:45 +02:00
Dirk McCormick
1c6500141b chore: log errors emited by server handler socket 2019-08-19 13:46:36 +02:00
Dirk McCormick
fb50de5cc6 fix: throw error on write to destroyed socket 2019-08-19 13:46:36 +02:00
Dirk McCormick
4a86c353e0 chore: update interface-transport 2019-08-19 13:46:36 +02:00
Dirk McCormick
a96c612071 test: fix listen addresses in tests 2019-08-19 13:46:35 +02:00
Dirk McCormick
1c1dfa65d3 chore: update packages 2019-08-19 13:46:35 +02:00
Dirk McCormick
1a2fd636eb chore: nicer addr name in README 2019-08-19 13:46:35 +02:00
Dirk McCormick
fb206cfd66 chore: fix travis file 2019-08-19 13:46:35 +02:00
Dirk McCormick
ff9123d53c revert: "feat: listen to array of multiaddrs (#104)"
This reverts commit 5009c2ca49f5e3f1ce8e8fe5f0bd88edbc13b5d8.
2019-08-19 13:46:21 +02:00
Dirk McCormick
c60897fbd8 chore: fix package.json 2019-08-19 13:46:02 +02:00
Dirk McCormick
bba2084476 feat: abort after connect 2019-08-19 13:46:02 +02:00
Jacob Heun
d5be5ba7ed feat: listen to array of multiaddrs (#104)
* feat: support listen on array

* chore: fix missing deps

* chore: update interface version

* docs: update readme for array listen

* test: use port 0

* docs: add some more jsdocs

* chore: fix travis support for ip6 on linux

* refactor: clean up some code
2019-08-19 13:46:01 +02:00
Dirk McCormick
b977a59fb8 chore: update README 2019-08-19 13:45:26 +02:00
Dirk McCormick
5c8c6afea6 test: add async/await tests 2019-08-19 13:45:26 +02:00
Dirk McCormick
e18a3d51a6 feat: cancel dials with AbortController 2019-08-19 13:43:56 +02:00
Dirk McCormick
bc1aeefd0d chore: callbacks -> async / await
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
2019-08-19 13:43:32 +02:00
Jacob Heun
49c7f33375 chore: release version v0.13.1
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.13.1
2019-08-08 13:27:01 +02:00
Jacob Heun
89bceb461f chore: update contributors 2019-08-08 13:27:01 +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
Vasco Santos
c26cc70c65 chore: add discourse badge (#106) 2019-04-26 17:44:28 +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
3aad2ed243 chore: release version v0.13.0
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.13.0
2018-09-12 19:40:49 +02:00
Jacob Heun
01cfbda2e7 chore: update contributors 2018-09-12 19:40:49 +02: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
Jacob Heun
a0c23e49f7 chore: release version v0.12.1
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.12.1
2018-07-31 14:13:11 +02:00
Jacob Heun
66ab208182 chore: update contributors 2018-07-31 14:13:10 +02:00
Jacob Heun
168d111158 chore: update deps and fix test runner
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2018-07-31 14:08:31 +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
Jacob Heun
d39ec2db40 chore: add lead maintainer (#94)
* chore: add lead maintainer

License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>

* Update package.json
2018-06-26 17:58:30 +02:00
David Dias
79428f3e62 chore: release version v0.12.0 v0.12.0 2018-04-05 17:00:33 +01:00
David Dias
8a394b5286 chore: update contributors 2018-04-05 17:00:33 +01:00
David Dias
b7f73bcda1 test: fix dial error test 2018-04-05 17:00:19 +01:00
David Dias
8b44aa28ee chore: update deps 2018-04-05 16:56:23 +01:00
Diogo Silva
ded1f6831c feat: add class-is module 2018-04-05 16:55:54 +01:00
Drew Stone
5ef24695fc docs: fixing the broken example in README (#91)
* Working example fix

* Char fix

* Corrected output, and add yarn to gitignore
2018-04-05 16:55:25 +01:00
David Dias
df0aa059ca chore: release version v0.11.6 v0.11.6 2018-02-20 10:27:27 +00:00
David Dias
bf74e9acad chore: update contributors 2018-02-20 10:27:26 +00:00
David Dias
83c4617e8d chore: update deps 2018-02-20 10:27:17 +00:00
David Dias
3b7e68bc8a docs: update and polish 2018-02-20 10:25:18 +00:00
David Dias
de1d7fe75c chore: tiny refactor 2018-02-07 06:40:00 +00:00
David Dias
9c77a69ae3 chore: tiny refactor 2018-02-07 06:26:02 +00:00
David Dias
50840a8067 test: refactor 2018-02-07 06:06:15 +00:00
David Dias
d194ff0a3b chore: release version v0.11.5 v0.11.5 2018-02-07 05:59:57 +00:00
David Dias
41ca37e9ce chore: update contributors 2018-02-07 05:59:56 +00:00
David Dias
71a28bb177 test: refactor 2018-02-07 05:59:34 +00:00
David Dias
0d1861a1f8 chore: release version v0.11.4 v0.11.4 2018-02-07 05:58:11 +00:00
David Dias
929408eb38 chore: update contributors 2018-02-07 05:58:11 +00:00