mirror of https://github.com/status-im/go-waku.git
chore: set userAgent to `go-waku`
This commit is contained in:
parent
1b7dd9fe3f
commit
77df9a2224
|
@ -30,8 +30,8 @@ import (
|
|||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Default clientId
|
||||
const clientId string = "Go Waku v2 node"
|
||||
// Default userAgent
|
||||
const userAgent string = "go-waku"
|
||||
|
||||
// Default minRelayPeersToPublish
|
||||
const defaultMinRelayPeersToPublish = 0
|
||||
|
@ -405,7 +405,7 @@ var DefaultLibP2POptions = []libp2p.Option{
|
|||
libp2p.ChainOptions(
|
||||
libp2p.Transport(tcp.NewTCPTransport),
|
||||
libp2p.Transport(quic.NewTransport),
|
||||
), libp2p.UserAgent(clientId),
|
||||
), libp2p.UserAgent(userAgent),
|
||||
libp2p.ChainOptions(
|
||||
libp2p.Muxer("/yamux/1.0.0", yamux.DefaultTransport),
|
||||
libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport),
|
||||
|
|
Loading…
Reference in New Issue