p2ptunnel
p2ptunnel copied to clipboard
Update module github.com/libp2p/go-libp2p to v0.35.1
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
github.com/libp2p/go-libp2p | v0.33.2 -> v0.35.1 |
Release Notes
libp2p/go-libp2p (github.com/libp2p/go-libp2p)
v0.35.1
What's Changed
- identify: Don't filter addr if remote is neither public nor private (#2820)
- identify: fix bug in observed address handling (#2825)
- identify: add test for observed address handling (#2828)
- libp2phttp: workaround for ResponseWriter's CloseNotifier (#2821)
- circuitv2: improve voucher validation (#2826)
- webrtc: fix ufrag prefix for dialing (#2832)
Full Changelog: https://github.com/libp2p/go-libp2p/compare/v0.35.0...v0.35.1
v0.35.0
⚠️ Breaking Changes ⚠️
- Resource Manager:
ConnLimitPerCIDR
is now calledConnLimitPerSubnet
. The field previously named BitMask is now called PrefixLength. Apologies for the churn, but the old names were vague and confusing.
🔦 Highlights
- Resource Manager: Renames ConnLimitPerCIDR to ConnLimitPerSubnet
- Resource Manager: Able to provide connection limits for specific IP address blocks.
- By default we new allow unlimited connections from localhost. Should help fix tests that broke with the previous behavior of limiting to only 8 connections per IP address.
What's Changed
- rcmgr: Support specific network prefix in conn limiter by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2807
Full Changelog: https://github.com/libp2p/go-libp2p/compare/v0.34.1...v0.35.0
v0.34.1
Refer to the v0.34.0 release notes for breaking changes in v0.34
What's Changed
- rcmgr: Backwards compatibility if you wrap default impl by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2805
- config: fix "Insecure-security" constructor by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2810
Full Changelog: https://github.com/libp2p/go-libp2p/compare/v0.34.0...v0.34.1
v0.34.0
⚠️ Breaking Changes ⚠️
- Transient Connections are now called Limited Connections. The prior terminology was confusing to many, and conflicted with the transient definition in the resource manager. The term actually referred to a connection that was relayed and limited in some aspect (either data or time).
- libp2phttp: The well-known resource for libp2p protocols has changed. See the discussion thread for context. This means that new clients will not be able to reach the well-known endpoint automatically on old servers, and new servers won't respond to the old well-known endpoint to old clients. If you do not fully control the deployment of this, you should set
EnableCompatibilityWithLegacyWellKnownEndpoint
inlibp2phttp.Host
totrue
to enable backwards compatibility. This is not the default behavior because libp2phttp is still experimental and things are generally permitted to break. In this case supporting backwards compatibility was simple enough and we generally don't like breaking users even on an experimental feature. - ResourceManager: This probably only affects 0.01% of use cases. The resource manager is now IP aware. Meaning it will set limits for how many connections it tracks per IP address or IP Address range (CIDR subnet). Look at
WithLimitPeersPerCIDR
for how to configure it. Almost all users will not need to touch this. If you're tests are suddenly breaking, this is might be why
🔦 Highlights
WebRTC Direct
- We've significantly improved support for webrtc-direct transport with multiple security and performance fixes.
- Based on the experience of webrtc-direct on v0.34 we intend to make it non experimental in v0.35
Transient Connections are now called Limited Connections
- Connections to peers over relayed or other limited connections, previously called
transient
are now calledlimited
throughout the code. Limited is more descriptive of the connection's behavior and it avoids conflict with Resource Manager's Transient scope. - For Connections, the
Transient
connection state has been renamed toLimited
. This is a breaking change and you'll have to replace uses ofconn.Stat().Transient
withconn.Stat().Limited
- Network context functions like
network.WithUseTransient
are deprecated, use their limited alternatives likenetwork.WithUseLimited
.
Limited Connectedness state
- Peers connected to the host via relayed or any other limited connection now report their connectivity state as
Limited
. - This state is also reflected in
EvtPeerConnectednessChanged
event. Consumers only interested in peers connected over Unlimited connections can ignore events with Limited Connectedness. NOTE: This changes the behavior of the Connected Connectedness state. Previously it included all limited connections and now it doesn't. To keep existing behavior in your code you can replace checksconnectedness == network.Connected
withconnectedness != network.NotConnected
What's Changed
- webrtc: setup datachannel handlers before connecting to a peer by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2716
- webrtc: close mux when closing listener by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2717
- ping: use context.Afterfunc to avoid a lingering goroutine by @Jorropo in https://github.com/libp2p/go-libp2p/pull/2723
- Small code improvements by @AnomalRoil in https://github.com/libp2p/go-libp2p/pull/2722
- webrtc: use a common logger for all pion logging by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2718
- fix: ReserveMemory error cannot be printed by @wlynxg in https://github.com/libp2p/go-libp2p/pull/2725
- webrtc: fix bug with logger wrapper by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2727
- chore: update examples to v0.33.0 by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2728
- webrtc: increase receive buffer size on listener by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2730
- security: remove unnecessary noise code by @Dreamacro in https://github.com/libp2p/go-libp2p/pull/2738
- chore: bump quic-go by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2742
- add more info to "protocol mux failed" by @zhiqiangxu in https://github.com/libp2p/go-libp2p/pull/2734
- webrtc: set sctp receive buffer size to 100kB by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2745
- ci: uci/copy-templates by @web3-bot in https://github.com/libp2p/go-libp2p/pull/2747
- use Fx to start and stop the host, swarm, autorelay and quicreuse by @marten-seemann in https://github.com/libp2p/go-libp2p/pull/2118
- quicreuse: remove workaround for quic-go listener close deadlock by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2746
- Use any port, not a specific one for HTTP examples by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2748
- feat: add tls
WithKeyLogWriter
option by @wlynxg in https://github.com/libp2p/go-libp2p/pull/2750 - webrtc: add NullResourceManager, fixes panic by @dozyio in https://github.com/libp2p/go-libp2p/pull/2752
- webrtc: run onDone callback immediately on close by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2729
- autonat: Clean up after close by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2749
- quic: make server cmd use RFC 9000 instead of draft-29 by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2753
- libp2phttp: Rename well-known resource by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2757
- fix: revert gorilla/websocket from 1.5.1 to 1.5.0 by @wlynxg in https://github.com/libp2p/go-libp2p/pull/2763
- Update chat with rendezvous example by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2769
- Identify: emit useful events after identification by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2759
- libp2phttp: Return connection: close when doing http over streams by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2756
- Update: update incomplete readmes by @apenzk in https://github.com/libp2p/go-libp2p/pull/2767
- Fix comment by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2775
- basichost: append certhash for webrtc addresses provided via address factory by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2774
- Add a "transient" network connectivity state by @Stebalien in https://github.com/libp2p/go-libp2p/pull/2696
- webrtc: add webrtc addresses to host normalizer by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2784
- Update github.com/quic-go/quic-go dependency by @fasmat in https://github.com/libp2p/go-libp2p/pull/2780
- fix: DNS protocol address is not reserved by @wlynxg in https://github.com/libp2p/go-libp2p/pull/2792
- identify: refactor observed address manager to do address mapping at thin waist(IP+TCP/UDP) layer by @sukunrt in https://github.com/libp2p/go-libp2p/pull/2793
- rcmgr: Add conn_limiter to limit number of conns per ip cidr by @MarcoPolo in https://github.com/libp2p/go-libp2p/pull/2788
New Contributors
- @AnomalRoil made their first contribution in https://github.com/libp2p/go-libp2p/pull/2722
- @wlynxg made their first contribution in https://github.com/libp2p/go-libp2p/pull/2725
- @Dreamacro made their first contribution in https://github.com/libp2p/go-libp2p/pull/2738
- @zhiqiangxu made their first contribution in https://github.com/libp2p/go-libp2p/pull/2734
- @apenzk made their first contribution in https://github.com/libp2p/go-libp2p/pull/2767
- @fasmat made their first contribution in https://github.com/libp2p/go-libp2p/pull/2780
Full Changelog: https://github.com/libp2p/go-libp2p/compare/v0.33.0...v0.34.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.