mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-27 04:26:41 +08:00
quic: don't send detailed error messages when closing connections (#2112)
This commit is contained in:
@@ -96,7 +96,7 @@ func (l *listener) setupConn(qconn quic.Connection) (*conn, error) {
|
|||||||
c, err := l.setupConnWithScope(qconn, connScope, remoteMultiaddr)
|
c, err := l.setupConnWithScope(qconn, connScope, remoteMultiaddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
connScope.Done()
|
connScope.Done()
|
||||||
qconn.CloseWithError(1, err.Error())
|
qconn.CloseWithError(1, "")
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user