logging for stunnel check

This commit is contained in:
Kevin Darby committed 2020-02-25 16:23:16 -05:00
1 parent 19e66a1c32
commit 46b3ab5da8
1 file changed
+3 -1
+3 -1
View File
@@ -116,6 +116,7 @@ namespace mbts.ui.shell
try
{
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,7 +125,8 @@ namespace mbts.ui.shell
kill_stunnel();
start_stunnel(path, job_error);
}
path = AppDomain.CurrentDomain.BaseDirectory + "\\..\\stunnel\\";
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();