update
This commit is contained in:
		
							parent
							
								
									9f5aca124d
								
							
						
					
					
						commit
						c1eaf43058
					
				@ -334,6 +334,10 @@ func (c *Conn) TlsConnection() (*tls.Conn, error) {
 | 
				
			|||||||
	return c.tlsConn, nil
 | 
						return c.tlsConn, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *Conn) OriginalConn() net.Conn {
 | 
				
			||||||
 | 
						return c.Conn
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func NewClientTlsConn(conn net.Conn, cfg *tls.Config) (*Conn, error) {
 | 
					func NewClientTlsConn(conn net.Conn, cfg *tls.Config) (*Conn, error) {
 | 
				
			||||||
	if conn == nil {
 | 
						if conn == nil {
 | 
				
			||||||
		return nil, net.ErrClosed
 | 
							return nil, net.ErrClosed
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user