1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-22 21:21:43 +08:00

9377 Commits

Author SHA1 Message Date
b7ea4bfc2a modify command name and update the test
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-12 05:58:47 +08:00
7de83f25b2 add type assertion checked
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-12 05:54:54 +08:00
a2ceb1f070 Merge pull request #5445 from kjzz/fix/bootstrap
add warning when no bootstrap in config
2018-09-11 19:14:58 +00:00
0252710020 remove Godeps
fixes #2722

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-11 12:11:24 -07:00
0b575bc0c5 p2p: rebase import updates
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:58:39 +02:00
f5cb640d25 p2p: simplify listener startup
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
80b89405ed p2p: fix docstrings
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
05bc3bd924 p2p: simplify remote handler matching
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
228a71aef2 p2p: deduplicate some listeners logic
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
c5090508a8 p2p: fix connmgr use
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
bba2d05ca9 p2p: cleanup after listener iface split
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
dd48b8237a p2p: separate listener types
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
a5e5b5be66 p2p: test custom protocol
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
d184433e6d p2p: hold lock when handling new streams
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
87567645f4 p2p: test for double-registering listeners
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
35eaa1664c p2p: rebase updates
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
0f9d284421 p2p: use host.SetStreamHandlerMatch for now
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
4badcdc340 p2p: tag connections in connection manager
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
8849193de0 p2p: more locks
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
3c6a168d16 p2p: fix imports after rebase
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
5e8725dbde p2p: test to ensure closing right linsters
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
4c98edaff6 p2p: fix remote/local listener races
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
a3c84e20ef p2p: refactor review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
f5ab137fc0 p2p: split forward into 2 commands
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
eb45436512 p2p: allow-custom-protocol option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
c19102816f p2p: change the required prefix to /x/
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
df0e566e98 p2p: update deps after rebase
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
df6decd31c p2p: don't automatically prefix proto with /p2p
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
9ba8bc56ee p2p: additional example
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
830ed48703 p2p: refactor first review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
3e0184bdad p2p: fix codeclimate warnings
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
0465079f35 p2p: fix ci
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
e4db7f7a48 p2p: update docs after refactor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
0198693e69 improve the documentation for the p2p feature
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-11 04:57:40 +02:00
e8ba4fc01a p2p: fix sharness tests after refactor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
058edaff58 p2p: make registries thread safer
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
df6540e014 p2p: rework stream/listener registration
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
067154f22f p2p: p2p ls
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
2487c99a7f p2p: refactor local/remote
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
48d83be052 p2p: implement forward cmd
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
6a1d709733 p2p: turns out we need half-open streams
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
cf6ddcbf70 p2p: fix some stuff after refactor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
132d6fae4a p2p: Only use reset on streams
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
8b7bf26664 p2p: add peer address to peerstore if specified
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
633b04e5da p2p: remove redundant listener address check
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
a0ad8cfd5c p2p: Optimize registry, move stream stuff around
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
a037ae6c93 p2p: cleanup listening logic, make dial act like ssh -L
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:29 +02:00
2280d6692c modify log level and update note
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-11 10:00:24 +08:00
eb45644104 Merge pull request #4804 from ipfs/feat/coreapi/dht
coreapi: DHT API
2018-09-11 01:13:37 +00:00
86f9eb73c3 coreapi: dht: remove option prefix
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-10 17:40:07 -07:00