github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/common/badtls/badtls_stub.go (about) 1 //go:build !go1.19 || go1.21 2 3 package badtls 4 5 import ( 6 "crypto/tls" 7 "os" 8 9 aTLS "github.com/sagernet/sing/common/tls" 10 ) 11 12 func Create(conn *tls.Conn) (aTLS.Conn, error) { 13 return nil, os.ErrInvalid 14 }