Skip to content

Commit

Permalink
FIX (#78)
Browse files Browse the repository at this point in the history
* update index

* FIX
  • Loading branch information
musicyin committed Apr 22, 2024
1 parent 2db4b3b commit fe6fa76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.go
Expand Up @@ -310,7 +310,7 @@ func (s *Session) initConn(req *Request) (conn *Conn, err error) {
conn.mu.Lock()
defer conn.mu.Unlock()

if conn.Conn == nil {
if conn.Conn == nil || !conn.checkTLS() { //no "use of closed network connection" ERROR after add this
if s.ProxyDialer != nil {
if err = s.getProxyConn(req, conn, host); err != nil {
return nil, err
Expand Down

0 comments on commit fe6fa76

Please sign in to comment.