github.com/sagernet/sing-box@v1.9.0-rc.20/common/badtls/read_wait_stub.go (about) 1 //go:build !go1.21 || without_badtls 2 3 package badtls 4 5 import ( 6 "os" 7 8 "github.com/sagernet/sing/common/tls" 9 ) 10 11 func NewReadWaitConn(conn tls.Conn) (tls.Conn, error) { 12 return nil, os.ErrInvalid 13 }