kubo/core/node/libp2p
Adin Schmahmann 397c346ae0
Some checks are pending
CodeQL / codeql (push) Waiting to run
Docker Build / docker-build (push) Waiting to run
Gateway Conformance / gateway-conformance (push) Waiting to run
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Waiting to run
Go Build / go-build (push) Waiting to run
Go Check / go-check (push) Waiting to run
Go Lint / go-lint (push) Waiting to run
Go Test / go-test (push) Waiting to run
Interop / interop-prep (push) Waiting to run
Interop / helia-interop (push) Blocked by required conditions
Interop / ipfs-webui (push) Blocked by required conditions
Sharness / sharness-test (push) Waiting to run
feat(libp2p): shared TCP listeners and AutoTLS.AutoWSS (#10565)
* feat(libp2p): enable shared TCP listeners

* docs: switch mentions of /ws to /tcp/4001

* feat: AutoTLS.AutoWSS

This adds AutoTLS.AutoWSS flag that is set to true by default.

It will check if Addresses.Swarm contain explicit /ws listener,
and if not found, it will append one per every /tcp listener

This way existing TCP ports are reused without any extra configuration,
but we don't break user's who have custom / explicit /ws listener
already.

I also moved logger around, to include Addresses.Swarm inspection
results in `autotls` logger.

* chore: go-libp2p v0.38.1

https://github.com/libp2p/go-libp2p/releases/tag/v0.38.0
https://github.com/libp2p/go-libp2p/releases/tag/v0.38.1

* docs: AutoTLS.AutoWSS and go-libp2p v0.38.x

* chore: p2p-forge/client v0.2.0

https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.0

* fix: disable libp2p.ShareTCPListener() in PNET

* chore(ci): timeout sharness after 15m

average successful run is  <9 minutes, no need to wait for 20
https://github.com/ipfs/kubo/actions/workflows/sharness.yml?query=is%3Asuccess

---------

Co-authored-by: Andrew Gillis <11790789+gammazero@users.noreply.github.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2024-12-20 18:41:25 +01:00
..
fd feat: Improve ResourceManager UX (#9338) 2022-11-10 12:25:57 +01:00
addrs.go feat(libp2p): shared TCP listeners and AutoTLS.AutoWSS (#10565) 2024-12-20 18:41:25 +01:00
discovery.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
dns.go refactor: update to go-libp2p v0.37.0 (#10554) 2024-10-23 01:31:40 +02:00
filters.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
host.go chore: upgrade go-libp2p-kad-dht (#10378) 2024-04-04 12:56:19 +00:00
hostopt.go refactor: stop using go-libp2p deprecated peer.ID.Pretty 2023-09-18 15:58:15 +02:00
libp2p_test.go add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
libp2p.go fix: apply agent-version-suffix to libp2p identify 2022-12-06 12:52:54 +01:00
nat.go feat: run AutoNAT V2 service in addition to V1 (#10468) 2024-08-06 21:51:45 +02:00
peerstore.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pnet.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pubsub.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
rcmgr_defaults.go docs: fix typos 2023-09-22 11:08:26 +00:00
rcmgr_logging_test.go fix: update rcmgr for go-libp2p v0.25 2023-02-14 22:19:46 +01:00
rcmgr_logging.go style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
rcmgr.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
relay.go refactor: update to go-libp2p v0.37.0 (#10554) 2024-10-23 01:31:40 +02:00
routing.go chore(config): make Routing.AcceleratedDHTClient a Flag (#10384) 2024-04-04 13:59:31 +02:00
routingopt_test.go chore: update boxo, go-libp2p, and internalize mplex (#10095) 2023-08-24 06:11:02 +00:00
routingopt.go feat(routing/http): support IPIP-484 and streaming (#10534) 2024-10-03 22:58:25 +00:00
sec.go Merge branch 'master' into tls-by-default 2024-08-06 20:16:57 -07:00
smux.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
topicdiscovery.go style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
transport.go feat(libp2p): shared TCP listeners and AutoTLS.AutoWSS (#10565) 2024-12-20 18:41:25 +01:00