This commit is contained in:
兔子 2025-06-17 12:36:57 +08:00
parent 9f5aca124d
commit c1eaf43058

View File

@ -334,6 +334,10 @@ func (c *Conn) TlsConnection() (*tls.Conn, error) {
return c.tlsConn, nil
}
func (c *Conn) OriginalConn() net.Conn {
return c.Conn
}
func NewClientTlsConn(conn net.Conn, cfg *tls.Config) (*Conn, error) {
if conn == nil {
return nil, net.ErrClosed