badtls_stub.go 201 B

1234567891011121314
  1. //go:build !go1.19 || go1.21
  2. package badtls
  3. import (
  4. "crypto/tls"
  5. "os"
  6. aTLS "github.com/sagernet/sing/common/tls"
  7. )
  8. func Create(conn *tls.Conn) (aTLS.Conn, error) {
  9. return nil, os.ErrInvalid
  10. }