go-libp2p
go-libp2p copied to clipboard
feat: support overriding net interface methods
The builtin methods are broken on android (see #2986 and https://github.com/golang/go/issues/40569). This patch allows users to provide their own implementation of these methods, such as anet.
This depends on a change in go-multiaddr to be merged first: https://github.com/multiformats/go-multiaddr/pull/275
As suggested in: https://github.com/libp2p/go-libp2p/pull/3159#issuecomment-2622609540.