Make ReadWaitConn reader replaceable

This commit is contained in:
世界 2025-08-20 08:44:29 +08:00
parent f4ed684146
commit b0d0f84770
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -128,6 +128,10 @@ func (c *ReadWaitConn) Upstream() any {
return c.Conn return c.Conn
} }
func (c *ReadWaitConn) ReaderReplaceable() bool {
return true
}
var tlsRegistry []func(conn net.Conn) (loaded bool, tlsReadRecord func() error, tlsHandlePostHandshakeMessage func() error) var tlsRegistry []func(conn net.Conn) (loaded bool, tlsReadRecord func() error, tlsHandlePostHandshakeMessage func() error)
func init() { func init() {