update
This commit is contained in:
1 parent
9f5aca124d
commit
c1eaf43058
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user