Improve read waiter interface

This commit is contained in:
世界
2023-12-07 11:56:57 +08:00
parent 330a712be6
commit 8be5ca0b17
17 changed files with 287 additions and 312 deletions

View File

@@ -0,0 +1,13 @@
//go:build !go1.21 || without_badtls
package badtls
import (
"os"
"github.com/sagernet/sing/common/tls"
)
func NewReadWaitConn(conn tls.Conn) (tls.Conn, error) {
return nil, os.ErrInvalid
}