diff --git a/ProxySU/MainWindow.xaml b/ProxySU/MainWindow.xaml
index 6f3ca17..6851d39 100644
--- a/ProxySU/MainWindow.xaml
+++ b/ProxySU/MainWindow.xaml
@@ -147,7 +147,7 @@
-
+
diff --git a/ProxySU/MainWindow.xaml.cs b/ProxySU/MainWindow.xaml.cs
index b5c12a9..a9bf03b 100644
--- a/ProxySU/MainWindow.xaml.cs
+++ b/ProxySU/MainWindow.xaml.cs
@@ -27,6 +27,7 @@ using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.Runtime;
using System.Globalization;
+using Microsoft.Win32;
namespace ProxySU
{
@@ -6988,6 +6989,7 @@ namespace ProxySU
return true;
}
+
//纯ipv6主机安装脚本处理
//private void Ipv6ScriptEdit(SshClient client,string scriptFile)
//{
@@ -8070,12 +8072,44 @@ namespace ProxySU
+
//生成客户端配置 96--98
#endregion
+ //安装日志另存为...
+ private void ButtonSaveInstalledLog_Click(object sender, RoutedEventArgs e)
+ {
+ string logSaveName = ChooseSaveFile("Log Save as...", $"{pwdir}");
+ if (String.IsNullOrEmpty(logSaveName) == false)
+ {
+ using (StreamWriter sw = new StreamWriter($"{logSaveName}"))
+ {
+ sw.WriteLine($"{TextBoxMonitorCommandResults.Text}");
+ }
+ }
+ }
+ private string ChooseSaveFile(string title, string initFolder)
+ {
+ SaveFileDialog dlg = new SaveFileDialog();
+ dlg.Title = title;
+ string localTime = DateTime.Now.ToLocalTime().ToString().Replace(' ','-').Replace(':','-').Replace('/','-').Replace('\\','-');
+ dlg.FileName = $"{TextBoxHost.Text.Replace(':','_')}_{localTime}.txt"; // Default file name
+ dlg.DefaultExt = ".txt"; // Default file extension
+ dlg.Filter = "Text documents|*.txt"; // Filter files by extension
+ dlg.InitialDirectory = initFolder;
+ // Process save file dialog box results
+ if (dlg.ShowDialog() == true)
+ {
+ return dlg.FileName;
+ }
+ else
+ {
+ return null;
+ }
+ }
}
}
diff --git a/ProxySU/Translations/ProxySU.en-US.xaml b/ProxySU/Translations/ProxySU.en-US.xaml
index ed2e2b5..47a836c 100644
--- a/ProxySU/Translations/ProxySU.en-US.xaml
+++ b/ProxySU/Translations/ProxySU.en-US.xaml
@@ -26,6 +26,7 @@
Not Login
Requires Login
Proxy Addr:
+ Save Installation Log...
Waiting for installation and deployment
System Tools
V2Ray Templates
diff --git a/ProxySU/Translations/ProxySU.zh-CN.xaml b/ProxySU/Translations/ProxySU.zh-CN.xaml
index 4906ea7..08bcf8c 100644
--- a/ProxySU/Translations/ProxySU.zh-CN.xaml
+++ b/ProxySU/Translations/ProxySU.zh-CN.xaml
@@ -26,6 +26,7 @@
不需登录
需要登录
代理地址:
+ 安装日志另存为...
等待安装布署
系统工具
V2Ray模板库
diff --git a/ProxySU/Translations/ProxySU.zh-TW.xaml b/ProxySU/Translations/ProxySU.zh-TW.xaml
index d60a826..6c12508 100644
--- a/ProxySU/Translations/ProxySU.zh-TW.xaml
+++ b/ProxySU/Translations/ProxySU.zh-TW.xaml
@@ -26,6 +26,7 @@
不需登錄
需要登錄
代理地址:
+ 安裝日誌另存為...
等待安裝佈署
系統工具
V2Ray模板庫
diff --git a/ProxySU/bin/Beta/Beta.zip b/ProxySU/bin/Beta/Beta.zip
index 97491a3..a47ce7b 100644
Binary files a/ProxySU/bin/Beta/Beta.zip and b/ProxySU/bin/Beta/Beta.zip differ