Commit Graph

155 Commits

Author SHA1 Message Date
Daniel Vernall 164ccd7958
examples: use circuitv2 in relay example (#1795)
* Updated relay example to use circuit-v2

* fixed incorrect import

* updated test fixture

* upgrade dependencies

* merged upstream

* Implemented suggested changes in upstream PR

* Implemented suggested changes in upstream PR
2022-10-09 20:32:46 +03:00
Marten Seemann e6ac836f87
examples: update go-libp2p to v0.23.x (#1803) 2022-10-06 13:04:44 -07:00
Scott Martin 7828f3e079
examples: add basic pubsub-with-rendezvous example (#1738)
* Added basic pubsub with rendezvous example

* Formatting

* Appease go vet and dep checker

* tidy go mod
2022-09-29 12:26:48 -07:00
web3-bot eff72c4afa
sync: update CI config files (#1678)
* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* run gofmt -s

* update .github/workflows/go-test.yml

* update .github/workflows/go-check.yml

* stop using the deprecated io/ioutil package

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-08-17 01:05:51 -07:00
Mars Zuo 4acaa2a7e1
examples: remove ipfs components from echo (#1672)
* examples: Remove the module dependency of ipfs to reduce the interference of novice learning

* examples(echo): Recover the logging part
2022-08-13 12:42:11 +03:00
Steven Allen f5e7cd1246
chore: update libp2p to v0.21 in examples (#1674) 2022-08-13 12:41:31 +03:00
Sergey a5e9114d2a
examples: fix unresponsive pubsub chat example (#1652) 2022-08-09 07:21:35 -07:00
Marten Seemann 058284b630
chore: update examples to go-libp2p v0.20.0 (#1557) 2022-05-28 02:24:51 -07:00
Marten Seemann fb9663e8aa
update go-libp2p to v0.19.0 in examples (#1409) 2022-04-19 05:34:27 -07:00
web3-bot 38c8195999
sync: update CI config files (#1372)
* bump go.mod to Go 1.17 and run go fix

* update .github/workflows/automerge.yml

* update .github/workflows/go-test.yml

* update .github/workflows/go-check.yml

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
2022-04-10 15:33:32 -07:00
Marten Seemann 60097363b9
fix go vet error in proxy example (#1377) 2022-04-10 04:13:07 -07:00
Marten Seemann b33326861c
update the examples to v0.18.0 (#1362) 2022-03-30 05:54:34 -07:00
Marten Seemann cfbe41aa45
disable flaky relay example test on CI (#1219) 2022-02-06 02:24:52 -08:00
Marten Seemann b42be24d4f remove replace directives in the examples go.mod files 2022-01-10 10:58:32 +04:00
Marten Seemann bfde26dd30
chore: update go-log to v2.5.0 (#1286) 2022-01-09 01:40:45 -08:00
Marten Seemann 0f0cc4e4a0 use the transport.Upgrader interface 2022-01-04 13:20:59 +04:00
Marten Seemann 161f1c73fd remove direct dependency on libp2p/go-addr-util 2022-01-03 12:47:46 +04:00
Marten Seemann 741348ec9c update import paths to use p2p/host/autonat 2021-12-22 13:26:20 +04:00
Marten Seemann e7ea19f358 remove goprocess from mock conn and link 2021-12-14 14:21:20 +04:00
Marten Seemann 2a15c304fa chore: update deps 2021-12-13 17:37:53 +04:00
Marten Seemann 56bcd81a3f use the new network.ConnStats 2021-12-13 17:26:07 +04:00
Marten Seemann a4e2a94e7b move the peerstoremanager to the host 2021-12-10 12:47:36 +04:00
Marten Seemann c31aa236fb chore: update go-libp2p-tls to v0.3.1 2021-11-24 18:17:37 +04:00
Marten Seemann a61e386c51 chore: update yamux and QUIC 2021-11-20 13:57:07 +04:00
Gus Eggert 7a35d0df97
feat: plumb through peerstore context changes (#1237) 2021-11-12 13:43:02 -05:00
Marten Seemann 72f0a64180 chore: update deps 2021-10-19 14:49:47 +02:00
Marten Seemann d01b892679 update go-libp2p-swarm to v0.7.0 2021-10-19 10:39:32 +02:00
Marten Seemann 2828a61f9c move circuitv2 tests to the relay package 2021-10-12 15:09:29 +02:00
Marten Seemann adb93ce704 chore: update zeroconf to v2.1.1 2021-10-05 21:58:27 +01:00
Marten Seemann 077325cde7 pass notifees to the mDNS constructor, add dedicated Start method 2021-10-05 13:00:44 +01:00
Marten Seemann 64693c6074 use the new mDNS service in the chat-with-mdns example 2021-10-05 12:54:12 +01:00
Marten Seemann 79a210072d
Merge pull request #1193 from libp2p/natmgr-remove-goprocess
remove goprocess from the NATManager
2021-09-29 13:47:44 +01:00
Marten Seemann 0aeef559d0 add an option to start the relay v2 2021-09-27 14:18:18 +01:00
Marten Seemann 20f296f2e9 chore: update go-tcp-transport to v0.3.0 2021-09-27 13:30:40 +01:00
Marten Seemann 4028c3c578 remove goprocess from the NATManager 2021-09-25 15:15:35 +01:00
Marten Seemann 4975f0abe5 remove dependency on github.com/ipfs/go-detect-race 2021-09-25 14:29:26 +01:00
vyzo 22b62cfd65
autorelay support for circuitv2 relays (#1198)
* move host/relay to host/autorelay

* move autorelay wrapper host to package

* support v2 relays in autorelay

* test autorelay with both v1 and v2 relays

* fix test race

* go mod tidy examples/pubsub/chat

static checker complains; sigh.

* refactor reservation refresh loop

* merge background and refresh goroutines

* handle pushes synchronously from reservation refresh failures

* make connmanager tag a package level constant

* dont sleep to wait for identify, use IdentifyWait

* make relay protocol ids package-level constants

* add comment about v1 relays not having reservations

* use errgrp instead of WaitGroup with atomic int

* fix variable capture bug

* go get x/sync
2021-09-25 05:47:39 -07:00
vyzo d1e26810a0
Add standalone implementation of v1 Relay (#1186)
* add circuitv1 protobuf

* add implementation of v1 circuit relay

Intended to be used by standalone daemons and tests

* remove references to go-libp2p-circuit from production code

* update tests to use the in-tree v1 Relay

* use go-log/v2 in relay v1 impl

* use in-tree v1 relay in relay example

* remove go-libp2p-circuit dep from examples go.mod, go mod tidy
2021-09-20 00:29:42 -07:00
Marten Seemann b7bee3855c remove the context from the libp2p and from the Host contructor 2021-09-18 14:06:56 +02:00
Marten Seemann 29da01af70 update go-libp2p-core to v0.10.0 2021-09-17 18:50:15 +02:00
vyzo 79d995404c
Use circuitv2 code (#1183)
* move circuitv2 to p2p/protocol

* update circuitv2 imports

* RIP circuit v2; use circuitv2

* fix autorelay test

* fix holepunch test

* fix relay example
2021-09-10 02:43:58 -07:00
Marten Seemann 3c25b386d9 merge branch 'hole-punching' 2021-09-08 18:23:13 +01:00
Marten Seemann 964880b872
Merge pull request #1174 from libp2p/circuitv2
move the circuit v2 code here
2021-09-07 14:24:30 +01:00
Marten Seemann 2d07a0d973 chore: update go-libp2p-autonat to v0.5.0 2021-08-30 10:57:52 +01:00
Marten Seemann e86c4ed31f make QUIC a default transport 2021-08-28 15:25:35 +01:00
web3-bot 0741d17496
sync: update CI config files (#1166) 2021-08-21 11:00:06 +00:00
Marten Seemann ec3c9cbf49
implement the new mDNS spec, move the old mDNS implementation (#1161)
* move the current mdns discovery implementation to discovery_legacy

* use libp2p/zeroconf for mDNS discovery

* rename the discovery package to mdns

* don't store the context

* use a wait group for clean shutdown of the mdns resolver

* add comment about port numbers

* move the mdns packages p2p/discovery
2021-08-18 09:15:56 -07:00
Marten Seemann 650a77b7ff update dependencies 2021-08-17 13:15:00 +02:00
Steven Allen 8217b1f094 fix: deflake multipro echo test
Specifically, wait for the handlers to finish printing before exiting.
2021-08-03 13:36:29 -07:00
Marten Seemann 366bdea5a4 chore: update deps 2021-07-28 14:28:57 +02:00