Skip to content

Commit

Permalink
fix custom spec issue for padding
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Sep 7, 2023
1 parent b66bc0b commit 8bbcc4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dialer/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ func (d *Dialer) makeTLSHelloPacketWithPadding(plainConn net.Conn, config *tls.C
return nil, fmt.Errorf("uTlsConn.Handshake() error: %+v", err)
}

err = utlsConn.Handshake()

if err != nil {
return nil, fmt.Errorf("uTlsConn.Handshake() error: %+v", err)
}

return utlsConn, nil
}

Expand Down

0 comments on commit 8bbcc4e

Please sign in to comment.