v0.4.0
This release is mostly a bugfix release but it gets a major version bump as it introduces two new features.
Features:
- Add a
UserAgentoption to libp2p for specifying the libp2p user-agent. Previously, this was specified using a globalClientVersionglobal variable.- Set the default user-agent to
$repo@$version(where$repois the downstream project importing go-libp2p).
- Set the default user-agent to
- Add a
Filtersoption to the constructor for specifying an address filter. This can be used to restrict which peers libp2p will connect to by IP/port/transport.
Bug Fixes:
- Update multiple deps
- websocket (bug fixes)
- sha256-simd (arm build fix)
- mdns (race conditions)
- Update for go-multiaddr protocol definition refactor. Multiaddr protocols have been moved out of libp2p transports into go-multiaddr itself.
- Fix some issues with non-constant time operations involving libp2p secret keys.