Compare commits

..
2 Commits
Author SHA1 Message Date
Kevin Darby 46b3ab5da8 logging for stunnel check 2020-02-25 16:23:16 -05:00
Kevin Darby 19e66a1c32 add a new stunnel path for Pete 2020-02-25 11:16:40 -05:00
+12 -1
View File
@@ -115,7 +115,8 @@ namespace mbts.ui.shell
{
try
{
var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BTS\\stunnel\\";
string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BTS\\stunnel\\";
Log.Ui.info($"Looking for stunnel in {path}");
if (File.Exists(path + "config\\stunnel.conf"))
{
uint job_error = BTSUINativeMethods.setup_process_job_object();
@@ -124,6 +125,16 @@ namespace mbts.ui.shell
kill_stunnel();
start_stunnel(path, job_error);
}
path = new DirectoryInfo( AppDomain.CurrentDomain.BaseDirectory ).FullName + "\\stunnel\\";
Log.Ui.info($"Looking for stunnel in {path}");
if (File.Exists(path + "config\\stunnel.conf"))
{
uint job_error = BTSUINativeMethods.setup_process_job_object();
//if we can't put this process and stunnel into a job, try to stop stunnel then restart
if (job_error != 0)
kill_stunnel();
start_stunnel(path, job_error);
}
}
catch(Exception ex)
{