v3.8.6.0 1、修改代码,.net框架版本由4.5降低到4.0,可在WinXP系统运行,WinXP系统最高支持.net 4.0。
This commit is contained in:
parent
ed3c3db8c9
commit
3429a3761b
@ -219,7 +219,7 @@ namespace net.nutcore.aliddns
|
|||||||
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "请检查配置文件查询网址设置!" + "\r\n");
|
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "请检查配置文件查询网址设置!" + "\r\n");
|
||||||
return "0.0.0.0";
|
return "0.0.0.0";
|
||||||
}
|
}
|
||||||
return "0.0.0.0";
|
//return "0.0.0.0";
|
||||||
}
|
}
|
||||||
catch (Exception error)
|
catch (Exception error)
|
||||||
{
|
{
|
||||||
|
@ -210,12 +210,13 @@ namespace net.nutcore.aliddns
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread thread = new Thread(() =>
|
Task task = Task.Factory.StartNew(() =>
|
||||||
{
|
{
|
||||||
var proc = Process.Start(exec);
|
var proc = Process.Start(exec);
|
||||||
proc.WaitForExit();
|
proc.WaitForExit();
|
||||||
proc.Dispose();
|
proc.Dispose();
|
||||||
});
|
});
|
||||||
|
task.Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -225,17 +226,26 @@ namespace net.nutcore.aliddns
|
|||||||
|
|
||||||
public void Stop()
|
public void Stop()
|
||||||
{
|
{
|
||||||
Thread thread = new Thread(() =>
|
try
|
||||||
{
|
{
|
||||||
Process[] pList = Process.GetProcessesByName("Ngrok");
|
Task task = Task.Factory.StartNew(() =>
|
||||||
foreach (Process p in pList)
|
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Kill: {p.Id}");
|
Process[] pList = Process.GetProcessesByName("Ngrok");
|
||||||
p.Kill();
|
foreach (Process p in pList)
|
||||||
p.WaitForExit();
|
{
|
||||||
p.Dispose();
|
Console.WriteLine($"Kill: {p.Id}");
|
||||||
}
|
p.Kill();
|
||||||
});
|
p.WaitForExit();
|
||||||
|
p.Dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
task.Start();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine(ex.Message);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
v3.8.6.0
|
||||||
|
1、修改代码,.net框架版本由4.5降低到4.0,可在WinXP系统运行,WinXP系统最高支持.net 4.0。
|
||||||
|
|
||||||
v3.8.5.0
|
v3.8.5.0
|
||||||
1、设置修改实时保存。2、可添加多个公网IP网址,自动运行是逐个查询,当有返回值时停止。3、简化代码。
|
1、设置修改实时保存。2、可添加多个公网IP网址,自动运行是逐个查询,当有返回值时停止。3、简化代码。
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user