quic: don't send detailed error messages when closing connections (#2112)

This commit is contained in:
Marten Seemann
2023-02-16 21:39:02 -08:00
committed by GitHub
parent 9f12163a3d
commit d686dbc79e

View File

@@ -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
} }