mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-16 12:03:03 +00:00
86b4b81f1d
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.34.0 to 0.35.1. - [Release notes](https://github.com/quic-go/quic-go/releases) - [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md) - [Commits](https://github.com/quic-go/quic-go/compare/v0.34.0...v0.35.1) --- updated-dependencies: - dependency-name: github.com/quic-go/quic-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
25 lines
483 B
Go
25 lines
483 B
Go
package quic
|
|
|
|
import "github.com/quic-go/quic-go"
|
|
|
|
type QlogWriter struct {
|
|
connID quic.ConnectionID
|
|
}
|
|
|
|
func (w *QlogWriter) Write(b []byte) (int, error) {
|
|
// to much log, only turn on when debug Quic
|
|
|
|
// if len(b) > 1 { // skip line separator "0a" in qlog
|
|
// log.Record(&log.GeneralMessage{
|
|
// Severity: log.Severity_Debug,
|
|
// Content: fmt.Sprintf("[%x] %s", w.connID, b),
|
|
// })
|
|
// }
|
|
return len(b), nil
|
|
}
|
|
|
|
func (w *QlogWriter) Close() error {
|
|
// Noop
|
|
return nil
|
|
}
|