diff --git a/ProxySuper.Core/Models/Hosts/Host.cs b/ProxySuper.Core/Models/Hosts/Host.cs
index eb0b2c6..75432df 100644
--- a/ProxySuper.Core/Models/Hosts/Host.cs
+++ b/ProxySuper.Core/Models/Hosts/Host.cs
@@ -28,6 +28,8 @@ namespace ProxySuper.Core.Models.Hosts
public string PrivateKeyPath { get; set; }
+ public string PrivateKeyPassPhrase { get; set; }
+
public LocalProxy Proxy { get; set; }
public LoginSecretType SecretType { get; set; }
diff --git a/ProxySuper.Core/Services/ServiceBase.cs b/ProxySuper.Core/Services/ServiceBase.cs
index 3a290dd..cf21daf 100644
--- a/ProxySuper.Core/Services/ServiceBase.cs
+++ b/ProxySuper.Core/Services/ServiceBase.cs
@@ -802,13 +802,13 @@ namespace ProxySuper.Core.Services
if (_host.SecretType == LoginSecretType.PrivateKey)
{
PrivateKeyFile keyFile;
- if (string.IsNullOrEmpty(_host.Password))
+ if (string.IsNullOrEmpty(_host.PrivateKeyPassPhrase))
{
keyFile = new PrivateKeyFile(_host.PrivateKeyPath);
}
else
{
- keyFile = new PrivateKeyFile(_host.PrivateKeyPath, _host.Password);
+ keyFile = new PrivateKeyFile(_host.PrivateKeyPath, _host.PrivateKeyPassPhrase);
}
authMethods.Add(new PrivateKeyAuthenticationMethod(_host.UserName, keyFile));
}
diff --git a/ProxySuper.WPF/Controls/HostControl.xaml b/ProxySuper.WPF/Controls/HostControl.xaml
index 0825885..caeda7a 100644
--- a/ProxySuper.WPF/Controls/HostControl.xaml
+++ b/ProxySuper.WPF/Controls/HostControl.xaml
@@ -17,7 +17,7 @@
-
+
@@ -36,6 +36,7 @@
+
@@ -105,7 +106,18 @@
Converter={StaticResource SecretTypeConverter},
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
}"
- Content="{DynamicResource HostUploadSecretKey}" />
+ Content="{DynamicResource HostUploadSecretKey}" />
+
+
+
diff --git a/ProxySuper.WPF/Resources/Languages/en.xaml b/ProxySuper.WPF/Resources/Languages/en.xaml
index 0740baa..8849bf7 100644
--- a/ProxySuper.WPF/Resources/Languages/en.xaml
+++ b/ProxySuper.WPF/Resources/Languages/en.xaml
@@ -40,7 +40,7 @@
ViewConfig
Delete
Up
- Done
+ Down
@@ -54,6 +54,7 @@
UploadKey
Password
PrivateKey
+ PKPassword
Proxy
diff --git a/ProxySuper.WPF/Resources/Languages/fa_IR.xaml b/ProxySuper.WPF/Resources/Languages/fa_IR.xaml
index f542028..e5cfc4d 100644
--- a/ProxySuper.WPF/Resources/Languages/fa_IR.xaml
+++ b/ProxySuper.WPF/Resources/Languages/fa_IR.xaml
@@ -3,20 +3,20 @@
xmlns:sys="clr-namespace:System;assembly=mscorlib">
- Random
+ تصادفی
ذخیره
ذخیره و نصب
ذخیره به عنوان
نصب
تنظیمات
- The following is a static web page connection provided by netizens, please check whether there is an index.html file by yourself
+ موارد زیر یک اتصال صفحه وب ثابت است که توسط کاربران اینترنتی ارائه شده است، لطفاً بررسی کنید که آیا فایل index.html توسط خودتان وجود دارد یا خیر.
- Add Host
- Actions
- Export Settings
- Export Subscribe
- Get Root
+ میزبان اضافه کنید
+ عمل کنند
+ پیکربندی صادرات
+ اشتراک صادرات
+ اکانت روت را فعال کنید
زبان(Language)
English
@@ -24,23 +24,23 @@
正體
فارسی
- Helper
+ یاور
Github
- UseRoot
- CertQuestion
- PrivateKey
+ اکانت روت را فعال کنید
+ در مورد گواهینامه
+ در مورد سوال
برچسب
آدرس
نوع
- Action
+ عمل کنند
نصب
ویرایش
- ViewConfig
- Delete
- Up
- Done
+ مشاهده پیکربندی
+ حذف
+ بالاا
+ پایین
@@ -50,10 +50,11 @@
نام کاربری
رمز عبور
پورت
- SecretType
- UploadKey
+ نوع تأیید ورود
+ کلید آپلود
رمز عبور
- PrivateKey
+ کلید خصوصی
+ رمز عبور PK
پروکسی
diff --git a/ProxySuper.WPF/Resources/Languages/tw_cn.xaml b/ProxySuper.WPF/Resources/Languages/tw_cn.xaml
index 487588c..87f47f2 100644
--- a/ProxySuper.WPF/Resources/Languages/tw_cn.xaml
+++ b/ProxySuper.WPF/Resources/Languages/tw_cn.xaml
@@ -55,6 +55,7 @@
上傳Key
密碼
私鑰
+ 私鑰密碼
代理
IP/地址
diff --git a/ProxySuper.WPF/Resources/Languages/zh_cn.xaml b/ProxySuper.WPF/Resources/Languages/zh_cn.xaml
index 9b7d575..35f1af7 100644
--- a/ProxySuper.WPF/Resources/Languages/zh_cn.xaml
+++ b/ProxySuper.WPF/Resources/Languages/zh_cn.xaml
@@ -56,6 +56,7 @@
上传Key
密码
私钥
+ 私钥密码
代理
IP/地址
diff --git a/ProxySuper.WPF/Views/Brook/BrookEditorView.xaml b/ProxySuper.WPF/Views/Brook/BrookEditorView.xaml
index c371f43..a8875e8 100644
--- a/ProxySuper.WPF/Views/Brook/BrookEditorView.xaml
+++ b/ProxySuper.WPF/Views/Brook/BrookEditorView.xaml
@@ -11,7 +11,7 @@
BorderBrush="#eee"
Icon="/Resources/ProxySU.ico"
WindowStartupLocation="CenterScreen"
- Title="BrookEditorView" Height="600" Width="1000">
+ Title="BrookEditorView" Height="640" Width="1000">
diff --git a/ProxySuper.WPF/Views/Hysteria/HysteriaEditorView.xaml b/ProxySuper.WPF/Views/Hysteria/HysteriaEditorView.xaml
index dd63cec..614a0cd 100644
--- a/ProxySuper.WPF/Views/Hysteria/HysteriaEditorView.xaml
+++ b/ProxySuper.WPF/Views/Hysteria/HysteriaEditorView.xaml
@@ -11,7 +11,7 @@
BorderBrush="#eee"
Icon="/Resources/ProxySU.ico"
WindowStartupLocation="CenterScreen"
- Title="Hysteria编辑配置" Height="600" Width="1000">
+ Title="Hysteria编辑配置" Height="640" Width="1000">
diff --git a/ProxySuper.WPF/Views/MTProxyGo/MTProxyGoEditorView.xaml b/ProxySuper.WPF/Views/MTProxyGo/MTProxyGoEditorView.xaml
index 4aa4dcc..720941c 100644
--- a/ProxySuper.WPF/Views/MTProxyGo/MTProxyGoEditorView.xaml
+++ b/ProxySuper.WPF/Views/MTProxyGo/MTProxyGoEditorView.xaml
@@ -11,7 +11,7 @@
BorderBrush="#eee"
Icon="/Resources/ProxySU.ico"
WindowStartupLocation="CenterScreen"
- Title="MTProto-Go编辑配置" Height="600" Width="1000">
+ Title="MTProto-Go编辑配置" Height="640" Width="1000">
diff --git a/ProxySuper.WPF/Views/NaiveProxy/NaiveProxyEditorView.xaml b/ProxySuper.WPF/Views/NaiveProxy/NaiveProxyEditorView.xaml
index 2a51884..b9442a1 100644
--- a/ProxySuper.WPF/Views/NaiveProxy/NaiveProxyEditorView.xaml
+++ b/ProxySuper.WPF/Views/NaiveProxy/NaiveProxyEditorView.xaml
@@ -11,7 +11,7 @@
BorderBrush="#eee"
Icon="/Resources/ProxySU.ico"
WindowStartupLocation="CenterScreen"
- Title="NaiveProxy编辑配置" Height="600" Width="1000">
+ Title="NaiveProxy编辑配置" Height="640" Width="1000">
diff --git a/ProxySuper.WPF/Views/TrojanGo/TrojanGoEditorView.xaml b/ProxySuper.WPF/Views/TrojanGo/TrojanGoEditorView.xaml
index 4ecee5b..59357b2 100644
--- a/ProxySuper.WPF/Views/TrojanGo/TrojanGoEditorView.xaml
+++ b/ProxySuper.WPF/Views/TrojanGo/TrojanGoEditorView.xaml
@@ -11,7 +11,7 @@
BorderBrush="#eee"
Icon="/Resources/ProxySU.ico"
WindowStartupLocation="CenterScreen"
- Title="Trojan-Go编辑配置" Height="600" Width="1000">
+ Title="Trojan-Go编辑配置" Height="640" Width="1000">