mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-20 01:20:57 +00:00
Compare commits
No commits in common. "master" and "v4.1.7" have entirely different histories.
53 changed files with 110 additions and 1370 deletions
|
@ -1,4 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Weavers>
|
|
||||||
<Costura />
|
|
||||||
</Weavers>
|
|
|
@ -9,11 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProxySuper.WPF", "ProxySupe
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProxySuper.Core", "ProxySuper.Core\ProxySuper.Core.csproj", "{15779EE6-D8CA-44BF-BFE2-941E155EEF3F}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProxySuper.Core", "ProxySuper.Core\ProxySuper.Core.csproj", "{15779EE6-D8CA-44BF-BFE2-941E155EEF3F}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "解决方案项", "解决方案项", "{327FE75A-7D23-4F0E-80E2-7D10C7603969}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
FodyWeavers.xml = FodyWeavers.xml
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
|
||||||
using System.Windows;
|
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
|
|
||||||
namespace ProxySuper.Core.Converters
|
namespace ProxySuper.Core.Converters
|
||||||
|
@ -28,19 +26,4 @@ namespace ProxySuper.Core.Converters
|
||||||
return parameter;
|
return parameter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BooleanOrConverter : IMultiValueConverter
|
|
||||||
{
|
|
||||||
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
|
|
||||||
{
|
|
||||||
return values.OfType<bool>().Any(v => v);
|
|
||||||
}
|
|
||||||
|
|
||||||
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,47 +9,22 @@ namespace ProxySuper.Core.Converters
|
||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
bool isMatch = (value != null && value.Equals(parameter));
|
return value.Equals(true) ? Visibility.Visible : Visibility.Collapsed;
|
||||||
// 如果匹配则显示,否则隐藏(Collapsed)
|
|
||||||
return isMatch ? Visibility.Visible : Visibility.Hidden;//Collapsed;
|
|
||||||
//return value.Equals(true) ? Visibility.Visible : Visibility.Hidden;//Collapsed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
if (value == null)
|
||||||
//if (value == null)
|
{
|
||||||
//{
|
return false;
|
||||||
// return false;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if (value.Equals(Visibility.Visible))
|
|
||||||
//{
|
|
||||||
// return true;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BooleanOrToVisibilityConverter : IMultiValueConverter
|
if (value.Equals(Visibility.Visible))
|
||||||
{
|
{
|
||||||
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
|
return true;
|
||||||
{
|
|
||||||
// 如果任一条件为 true,则返回 Visible,否则返回 Hidden/Collapsed
|
|
||||||
foreach (var value in values)
|
|
||||||
{
|
|
||||||
if (value is bool boolVal && boolVal)
|
|
||||||
{
|
|
||||||
return Visibility.Visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Visibility.Hidden;//Collapsed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
|
return false;
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,61 +20,36 @@ namespace ProxySuper.Core.Models.Hosts
|
||||||
|
|
||||||
public string Address { get; set; }
|
public string Address { get; set; }
|
||||||
|
|
||||||
public int Port { get; set; } = 22;
|
|
||||||
|
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
|
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
public string PrivateKeyPath { get; set; }
|
public int Port { get; set; } = 22;
|
||||||
|
|
||||||
public string PrivateKeyPassPhrase { get; set; }
|
public string PrivateKeyPath { get; set; }
|
||||||
|
|
||||||
public LocalProxy Proxy { get; set; }
|
public LocalProxy Proxy { get; set; }
|
||||||
|
|
||||||
public LoginSecretType SecretType { get; set; }
|
public LoginSecretType SecretType { get; set; }
|
||||||
|
|
||||||
//public IMvxCommand UploadPrivateKeyCommand => new MvxCommand(UploadPrivateKey);
|
public IMvxCommand UploadPrivateKeyCommand => new MvxCommand(UploadPrivateKey);
|
||||||
|
|
||||||
private readonly IMvxCommand _uploadPrivateKeyCommand;
|
|
||||||
public IMvxCommand UploadPrivateKeyCommand => _uploadPrivateKeyCommand ?? new MvxCommand(UploadPrivateKey);
|
|
||||||
|
|
||||||
private void UploadPrivateKey()
|
private void UploadPrivateKey()
|
||||||
{
|
{
|
||||||
var fileDialog = new OpenFileDialog()
|
var fileDialog = new OpenFileDialog();
|
||||||
{
|
|
||||||
Filter = "Private Key (*.pem;*.key)|*.pem;*.key|All File (*.*)|*.*",
|
|
||||||
Title = "Select the private key file"
|
|
||||||
};
|
|
||||||
fileDialog.FileOk += OnFileOk;
|
fileDialog.FileOk += OnFileOk;
|
||||||
fileDialog.ShowDialog();
|
fileDialog.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void OnFileOk(object sender, CancelEventArgs e)
|
private void OnFileOk(object sender, CancelEventArgs e)
|
||||||
{
|
{
|
||||||
var file = sender as OpenFileDialog;
|
var file = sender as OpenFileDialog;
|
||||||
if (file != null)
|
|
||||||
{
|
|
||||||
PrivateKeyPath = file.FileName;
|
PrivateKeyPath = file.FileName;
|
||||||
|
|
||||||
//Task.Delay(300).ContinueWith((t) =>
|
Task.Delay(300).ContinueWith((t) =>
|
||||||
//{
|
|
||||||
// MessageBox.Show("OK:" + PrivateKeyPath, "Tips");
|
|
||||||
//});
|
|
||||||
|
|
||||||
await Task.Delay(300);
|
|
||||||
MessageBox.Show("OK:" + PrivateKeyPath, "Tips");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
//Task.Delay(300).ContinueWith((t) =>
|
MessageBox.Show("上传成功", "提示");
|
||||||
//{
|
});
|
||||||
// MessageBox.Show("Error:Unable to get file!", "Tips");
|
|
||||||
//});
|
|
||||||
|
|
||||||
await Task.Delay(300);
|
|
||||||
MessageBox.Show("Error:Unable to get file!", "Tips");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace ProxySuper.Core.Models.Projects
|
|
||||||
{
|
|
||||||
public class HysteriaSettings : IProjectSettings
|
|
||||||
{
|
|
||||||
public string Domain { get; set; } = "";
|
|
||||||
|
|
||||||
public string Obfs { get; set; } = "";
|
|
||||||
|
|
||||||
public string Email { get; set; } = "";
|
|
||||||
|
|
||||||
public string Protocol { get; set; } = "udp";
|
|
||||||
|
|
||||||
public int Port { get; set; } = 36712;
|
|
||||||
|
|
||||||
public int UpMbps { get; set; } = 300;
|
|
||||||
|
|
||||||
public int DownMbps { get; set; } = 300;
|
|
||||||
|
|
||||||
public List<int> FreePorts
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return new List<int> { Port, 80 };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,6 +8,5 @@
|
||||||
Brook = 3,
|
Brook = 3,
|
||||||
V2ray = 4,
|
V2ray = 4,
|
||||||
MTProtoGo = 5,
|
MTProtoGo = 5,
|
||||||
Hysteria = 6,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,21 +81,11 @@ namespace ProxySuper.Core.Models.Projects
|
||||||
list.Add(VLESS_KCP_Port);
|
list.Add(VLESS_KCP_Port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Types.Contains(RayType.VLESS_QUIC))
|
|
||||||
{
|
|
||||||
list.Add(VLESS_QUIC_Port);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Types.Contains(RayType.VMESS_KCP))
|
if (Types.Contains(RayType.VMESS_KCP))
|
||||||
{
|
{
|
||||||
list.Add(VMESS_KCP_Port);
|
list.Add(VMESS_KCP_Port);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Types.Contains(RayType.VMESS_QUIC))
|
|
||||||
{
|
|
||||||
list.Add(VMESS_QUIC_Port);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Types.Contains(RayType.ShadowsocksAEAD))
|
if (Types.Contains(RayType.ShadowsocksAEAD))
|
||||||
{
|
{
|
||||||
list.Add(ShadowSocksPort);
|
list.Add(ShadowSocksPort);
|
||||||
|
|
|
@ -9,14 +9,12 @@ namespace ProxySuper.Core.Models.Projects
|
||||||
{
|
{
|
||||||
public class XraySettings : V2raySettings
|
public class XraySettings : V2raySettings
|
||||||
{
|
{
|
||||||
public static List<string> UTLSList = new List<string> { "", "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized" };
|
public static List<string> FlowList = new List<string> { "xtls-rprx-origin", "xtls-rprx-origin-udp443", "xtls-rprx-direct", "xtls-rprx-direct-udp443", "xtls-rprx-splice", "xtls-rprx-splice-udp443" };
|
||||||
|
public static List<string> UTLSList = new List<string> { "", "chrome", "firefox", "safari", "randomized" };
|
||||||
//流控参数在服务端只有两种 "none", "xtls-rprx-vision",客户端可以选择三种:"none", "xtls-rprx-vision", "xtls-rprx-vision-udp443",但是选择了XTLS模式就是默认flow不为空或者"none",所以这里不再填加"none"这一项。
|
|
||||||
public static List<string> FlowList = new List<string> { "xtls-rprx-vision", "xtls-rprx-vision-udp443" }; //{ "xtls-rprx-origin", "xtls-rprx-origin-udp443", "xtls-rprx-direct", "xtls-rprx-direct-udp443", "xtls-rprx-splice", "xtls-rprx-splice-udp443" };
|
|
||||||
|
|
||||||
public string UTLS { get; set; } = UTLSList[1];
|
public string UTLS { get; set; } = UTLSList[1];
|
||||||
|
|
||||||
public string Flow { get; set; } = FlowList[0];
|
public string Flow { get; set; } = FlowList[2];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// vless xtls shareLink
|
/// vless xtls shareLink
|
||||||
|
|
|
@ -51,9 +51,6 @@ namespace ProxySuper.Core.Models
|
||||||
[JsonProperty("mtProtoGoSettings")]
|
[JsonProperty("mtProtoGoSettings")]
|
||||||
public MTProtoGoSettings MTProtoGoSettings { get; set; }
|
public MTProtoGoSettings MTProtoGoSettings { get; set; }
|
||||||
|
|
||||||
[JsonProperty]
|
|
||||||
public HysteriaSettings HysteriaSettings { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public ProjectType Type
|
public ProjectType Type
|
||||||
|
@ -70,8 +67,6 @@ namespace ProxySuper.Core.Models
|
||||||
|
|
||||||
if (MTProtoGoSettings != null) return ProjectType.MTProtoGo;
|
if (MTProtoGoSettings != null) return ProjectType.MTProtoGo;
|
||||||
|
|
||||||
if (HysteriaSettings != null) return ProjectType.Hysteria;
|
|
||||||
|
|
||||||
return ProjectType.Brook;
|
return ProjectType.Brook;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,8 +47,8 @@
|
||||||
<Reference Include="QRCoder, Version=1.4.3.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
|
<Reference Include="QRCoder, Version=1.4.3.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\QRCoder.1.4.3\lib\net40\QRCoder.dll</HintPath>
|
<HintPath>..\packages\QRCoder.1.4.3\lib\net40\QRCoder.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Renci.SshNet, Version=2023.0.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL">
|
<Reference Include="Renci.SshNet, Version=2020.0.2.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\SSH.NET.2023.0.0\lib\net462\Renci.SshNet.dll</HintPath>
|
<HintPath>..\packages\SSH.NET.2020.0.2\lib\net40\Renci.SshNet.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
@ -90,7 +90,6 @@
|
||||||
<Compile Include="Models\ProjectProgress.cs" />
|
<Compile Include="Models\ProjectProgress.cs" />
|
||||||
<Compile Include="Models\Projects\BrookSettings.cs" />
|
<Compile Include="Models\Projects\BrookSettings.cs" />
|
||||||
<Compile Include="Models\Projects\BrookType.cs" />
|
<Compile Include="Models\Projects\BrookType.cs" />
|
||||||
<Compile Include="Models\Projects\HysteriaSettings.cs" />
|
|
||||||
<Compile Include="Models\Projects\IProjectSettings.cs" />
|
<Compile Include="Models\Projects\IProjectSettings.cs" />
|
||||||
<Compile Include="Models\Hosts\LocalProxy.cs" />
|
<Compile Include="Models\Hosts\LocalProxy.cs" />
|
||||||
<Compile Include="Models\Projects\MTProtoGoSettings.cs" />
|
<Compile Include="Models\Projects\MTProtoGoSettings.cs" />
|
||||||
|
@ -108,7 +107,6 @@
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Helpers\Utils.cs" />
|
<Compile Include="Helpers\Utils.cs" />
|
||||||
<Compile Include="Services\BrookService.cs" />
|
<Compile Include="Services\BrookService.cs" />
|
||||||
<Compile Include="Services\HysteriaService.cs" />
|
|
||||||
<Compile Include="Services\MTProtoGoService.cs" />
|
<Compile Include="Services\MTProtoGoService.cs" />
|
||||||
<Compile Include="Services\NaiveProxyService.cs" />
|
<Compile Include="Services\NaiveProxyService.cs" />
|
||||||
<Compile Include="Services\ServiceBase.cs" />
|
<Compile Include="Services\ServiceBase.cs" />
|
||||||
|
@ -124,9 +122,6 @@
|
||||||
<Compile Include="ViewModels\BrookInstallViewModel.cs" />
|
<Compile Include="ViewModels\BrookInstallViewModel.cs" />
|
||||||
<Compile Include="ViewModels\EnableRootViewModel.cs" />
|
<Compile Include="ViewModels\EnableRootViewModel.cs" />
|
||||||
<Compile Include="ViewModels\HomeViewModel.cs" />
|
<Compile Include="ViewModels\HomeViewModel.cs" />
|
||||||
<Compile Include="ViewModels\HysteriaConfigViewModel.cs" />
|
|
||||||
<Compile Include="ViewModels\HysteriaEditorViewModel.cs" />
|
|
||||||
<Compile Include="ViewModels\HysteriaInstallViewModel.cs" />
|
|
||||||
<Compile Include="ViewModels\MTProtoGoConfigViewModel.cs" />
|
<Compile Include="ViewModels\MTProtoGoConfigViewModel.cs" />
|
||||||
<Compile Include="ViewModels\MTProtoGoEditorViewModel.cs" />
|
<Compile Include="ViewModels\MTProtoGoEditorViewModel.cs" />
|
||||||
<Compile Include="ViewModels\MTProtoGoInstallViewModel.cs" />
|
<Compile Include="ViewModels\MTProtoGoInstallViewModel.cs" />
|
||||||
|
|
|
@ -1,172 +0,0 @@
|
||||||
using Newtonsoft.Json;
|
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
using ProxySuper.Core.Models.Hosts;
|
|
||||||
using ProxySuper.Core.Models.Projects;
|
|
||||||
using Renci.SshNet.Messages;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows;
|
|
||||||
|
|
||||||
namespace ProxySuper.Core.Services
|
|
||||||
{
|
|
||||||
public class HysteriaService : ServiceBase<HysteriaSettings>
|
|
||||||
{
|
|
||||||
public HysteriaService(Host host, HysteriaSettings settings) : base(host, settings)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void Install()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Task.Factory.StartNew(() =>
|
|
||||||
{
|
|
||||||
Progress.Step = "安装Hysteria";
|
|
||||||
Progress.Percentage = 0;
|
|
||||||
|
|
||||||
|
|
||||||
Progress.Desc = "检测系统环境";
|
|
||||||
EnsureRootUser();
|
|
||||||
EnsureSystemEnv();
|
|
||||||
Progress.Percentage = 20;
|
|
||||||
|
|
||||||
Progress.Desc = "安装必要的系统工具";
|
|
||||||
InstallSystemTools();
|
|
||||||
Progress.Percentage = 40;
|
|
||||||
|
|
||||||
Progress.Desc = "配置防火墙";
|
|
||||||
ConfigFirewalld();
|
|
||||||
Progress.Percentage = 50;
|
|
||||||
|
|
||||||
Progress.Step = "检测网络环境";
|
|
||||||
EnsureNetwork();
|
|
||||||
Progress.Percentage = 60;
|
|
||||||
|
|
||||||
|
|
||||||
Progress.Desc = "检测域名是否绑定本机IP";
|
|
||||||
ValidateDomain();
|
|
||||||
Progress.Percentage = 80;
|
|
||||||
|
|
||||||
Progress.Step = "上传Hysteria配置文件";
|
|
||||||
UploadConfigFile();
|
|
||||||
Progress.Step = "安装Hysteria服务";
|
|
||||||
InstallHysteria();
|
|
||||||
|
|
||||||
Progress.Percentage = 100;
|
|
||||||
Progress.Step = "安装Hysteria成功";
|
|
||||||
Progress.Desc = "安装Hysteria成功";
|
|
||||||
});
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
MessageBox.Show(ex.Message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Uninstall()
|
|
||||||
{
|
|
||||||
Task.Factory.StartNew(() =>
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Progress.Step = "卸载Hysteria";
|
|
||||||
Progress.Percentage = 0;
|
|
||||||
|
|
||||||
Progress.Desc = "停止Hysteria服务";
|
|
||||||
RunCmd("systemctl stop Hysteria");
|
|
||||||
RunCmd("systemctl disable Hysteria");
|
|
||||||
Progress.Percentage = 30;
|
|
||||||
|
|
||||||
Progress.Desc = "删除Hysteria相关文件";
|
|
||||||
RunCmd("rm -rf /etc/systemd/system/Hysteria.service");
|
|
||||||
RunCmd("rm -rf /usr/bin/Hysteria");
|
|
||||||
Progress.Percentage = 80;
|
|
||||||
|
|
||||||
Progress.Desc = "重置防火墙设置";
|
|
||||||
ResetFirewalld();
|
|
||||||
|
|
||||||
Progress.Percentage = 100;
|
|
||||||
Progress.Desc = "卸载完成";
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
MessageBox.Show(ex.Message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private string HysteriaServiceTemp = @"
|
|
||||||
[Unit]
|
|
||||||
Description=hysteria service
|
|
||||||
After=network.target syslog.target
|
|
||||||
Wants=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=##run_cmd##
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target";
|
|
||||||
|
|
||||||
private void InstallHysteria()
|
|
||||||
{
|
|
||||||
Progress.Desc = "执行Hysteria安装文件";
|
|
||||||
string url = "https://github.com/apernet/hysteria/releases/download/v1.3.4/hysteria-linux-386";
|
|
||||||
string targetPath = "/usr/bin/hysteria/hysteria-linux-386";
|
|
||||||
|
|
||||||
if (ArchType == ArchType.arm)
|
|
||||||
{
|
|
||||||
url = url.Replace("hysteria-linux-386", "hysteria-linux-arm");
|
|
||||||
targetPath = targetPath.Replace("hysteria-linux-386", "hysteria-linux-arm");
|
|
||||||
}
|
|
||||||
|
|
||||||
RunCmd($"curl -L {url} -o {targetPath}");
|
|
||||||
RunCmd($"chmod +x {targetPath}");
|
|
||||||
|
|
||||||
Progress.Desc = "设置Hysteria服务";
|
|
||||||
var cmd = targetPath + " -c /usr/bin/hysteria/config.json server";
|
|
||||||
var hysteriaService = HysteriaServiceTemp.Replace("##run_cmd##", cmd);
|
|
||||||
|
|
||||||
RunCmd("rm -rf /etc/systemd/system/hysteria.service");
|
|
||||||
RunCmd("touch /etc/systemd/system/hysteria.service");
|
|
||||||
|
|
||||||
RunCmd($"echo \"{hysteriaService}\" > /etc/systemd/system/hysteria.service");
|
|
||||||
RunCmd("sudo chmod 777 /etc/systemd/system/hysteria.service");
|
|
||||||
|
|
||||||
|
|
||||||
Progress.Desc = "启动Hysteria服务";
|
|
||||||
RunCmd("systemctl enable hysteria");
|
|
||||||
RunCmd("systemctl restart hysteria");
|
|
||||||
}
|
|
||||||
|
|
||||||
private const string ConfigFilePath = @"Templates\Hysteria\config.json";
|
|
||||||
private void UploadConfigFile()
|
|
||||||
{
|
|
||||||
var text = File.ReadAllText(ConfigFilePath, Encoding.UTF8);
|
|
||||||
var json = JsonConvert.DeserializeObject(text);
|
|
||||||
var obj = JToken.FromObject(json) as dynamic;
|
|
||||||
|
|
||||||
|
|
||||||
obj["listen"] = $":{Settings.Port}";
|
|
||||||
obj["acme"]["domains"][0] = Settings.Domain;
|
|
||||||
obj["email"] = Settings.Email;
|
|
||||||
obj["obfs"] = Settings.Obfs;
|
|
||||||
|
|
||||||
var configJson = JsonConvert.SerializeObject(
|
|
||||||
obj,
|
|
||||||
Formatting.Indented,
|
|
||||||
new JsonSerializerSettings()
|
|
||||||
{
|
|
||||||
NullValueHandling = NullValueHandling.Ignore
|
|
||||||
});
|
|
||||||
|
|
||||||
RunCmd("mkdir /usr/bin/hysteria");
|
|
||||||
WriteToFile(configJson, "/usr/bin/hysteria/config.json");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -42,10 +42,7 @@ namespace ProxySuper.Core.Services
|
||||||
Progress.Percentage = 50;
|
Progress.Percentage = 50;
|
||||||
|
|
||||||
Progress.Step = "5. 生成密钥";
|
Progress.Step = "5. 生成密钥";
|
||||||
//RunCmd("docker pull nineseconds/mtg:2"); //拉取v2版本命令,但是似乎不用也可以。
|
Settings.SecretText = RunCmd($"docker run nineseconds/mtg generate-secret {Settings.Cleartext}").TrimEnd('\n');
|
||||||
//下面的命令是v1版本的命令格式。可以保留。将来如启用v1,可用。
|
|
||||||
//Settings.SecretText = RunCmd($"docker run nineseconds/mtg:1 generate-secret -c {Settings.Cleartext} tls").TrimEnd('\n');
|
|
||||||
Settings.SecretText = RunCmd($"docker run nineseconds/mtg:2 generate-secret {Settings.Cleartext}").TrimEnd('\n');
|
|
||||||
Progress.Percentage = 65;
|
Progress.Percentage = 65;
|
||||||
|
|
||||||
Progress.Step = "6. 生成配置文件";
|
Progress.Step = "6. 生成配置文件";
|
||||||
|
@ -58,7 +55,7 @@ namespace ProxySuper.Core.Services
|
||||||
Progress.Percentage = 80;
|
Progress.Percentage = 80;
|
||||||
|
|
||||||
Progress.Step = "7. 启动MTProto服务";
|
Progress.Step = "7. 启动MTProto服务";
|
||||||
RunCmd($"docker run -d -v /etc/mtg.toml:/config.toml --name=mtg --restart=always -p {Settings.Port + ":" + Settings.Port} nineseconds/mtg:2");
|
RunCmd($"docker run -d -v /etc/mtg.toml:/config.toml --name=mtg --restart=always -p {Settings.Port + ":" + Settings.Port} nineseconds/mtg");
|
||||||
Progress.Desc = "设置自启动MTProto服务";
|
Progress.Desc = "设置自启动MTProto服务";
|
||||||
|
|
||||||
Progress.Step = "安装完成";
|
Progress.Step = "安装完成";
|
||||||
|
@ -119,8 +116,7 @@ namespace ProxySuper.Core.Services
|
||||||
Progress.Percentage = 50;
|
Progress.Percentage = 50;
|
||||||
|
|
||||||
Progress.Desc = "生成密钥";
|
Progress.Desc = "生成密钥";
|
||||||
//Settings.SecretText = RunCmd($"docker run nineseconds/mtg:1 generate-secret -c {Settings.Cleartext} tls").TrimEnd('\n'); //v1版本
|
Settings.SecretText = RunCmd($"docker run nineseconds/mtg generate-secret {Settings.Cleartext}").TrimEnd('\n');
|
||||||
Settings.SecretText = RunCmd($"docker run nineseconds/mtg:2 generate-secret {Settings.Cleartext}").TrimEnd('\n');
|
|
||||||
Progress.Percentage = 65;
|
Progress.Percentage = 65;
|
||||||
|
|
||||||
Progress.Desc = "修改配置文件";
|
Progress.Desc = "修改配置文件";
|
||||||
|
|
|
@ -802,13 +802,13 @@ namespace ProxySuper.Core.Services
|
||||||
if (_host.SecretType == LoginSecretType.PrivateKey)
|
if (_host.SecretType == LoginSecretType.PrivateKey)
|
||||||
{
|
{
|
||||||
PrivateKeyFile keyFile;
|
PrivateKeyFile keyFile;
|
||||||
if (string.IsNullOrEmpty(_host.PrivateKeyPassPhrase))
|
if (string.IsNullOrEmpty(_host.Password))
|
||||||
{
|
{
|
||||||
keyFile = new PrivateKeyFile(_host.PrivateKeyPath);
|
keyFile = new PrivateKeyFile(_host.PrivateKeyPath);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
keyFile = new PrivateKeyFile(_host.PrivateKeyPath, _host.PrivateKeyPassPhrase);
|
keyFile = new PrivateKeyFile(_host.PrivateKeyPath, _host.Password);
|
||||||
}
|
}
|
||||||
authMethods.Add(new PrivateKeyAuthenticationMethod(_host.UserName, keyFile));
|
authMethods.Add(new PrivateKeyAuthenticationMethod(_host.UserName, keyFile));
|
||||||
}
|
}
|
||||||
|
@ -829,8 +829,7 @@ namespace ProxySuper.Core.Services
|
||||||
proxyType: _host.Proxy.Type,
|
proxyType: _host.Proxy.Type,
|
||||||
proxyHost: _host.Proxy.Address,
|
proxyHost: _host.Proxy.Address,
|
||||||
proxyPort: _host.Proxy.Port,
|
proxyPort: _host.Proxy.Port,
|
||||||
proxyUsername: _host.Proxy.UserName,
|
proxyUsername: _host.Proxy.UserName, proxyPassword: _host.Proxy.Password,
|
||||||
proxyPassword: _host.Proxy.Password,
|
|
||||||
authenticationMethods: authMethods.ToArray());
|
authenticationMethods: authMethods.ToArray());
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
@ -184,7 +184,7 @@ namespace ProxySuper.Core.Services
|
||||||
case RayType.VLESS_TCP_XTLS:
|
case RayType.VLESS_TCP_XTLS:
|
||||||
_protocol = "vless";
|
_protocol = "vless";
|
||||||
_type = "tcp";
|
_type = "tcp";
|
||||||
_security = "tls";
|
_security = "xtls";
|
||||||
_descriptiveText = "vless-tcp-xtls";
|
_descriptiveText = "vless-tcp-xtls";
|
||||||
break;
|
break;
|
||||||
case RayType.VLESS_WS:
|
case RayType.VLESS_WS:
|
||||||
|
|
|
@ -79,8 +79,7 @@ namespace ProxySuper.Core.Services
|
||||||
}
|
}
|
||||||
var domain = parameters.MaskDomain
|
var domain = parameters.MaskDomain
|
||||||
.TrimStart("http://".ToCharArray())
|
.TrimStart("http://".ToCharArray())
|
||||||
.TrimStart("https://".ToCharArray())
|
.TrimStart("https://".ToCharArray());
|
||||||
.TrimEnd('/');
|
|
||||||
|
|
||||||
caddyStr = caddyStr.Replace("##reverse_proxy##", $"reverse_proxy {prefix}{domain} {{ \n header_up Host {domain} \n }}");
|
caddyStr = caddyStr.Replace("##reverse_proxy##", $"reverse_proxy {prefix}{domain} {{ \n header_up Host {domain} \n }}");
|
||||||
}
|
}
|
||||||
|
@ -104,7 +103,6 @@ namespace ProxySuper.Core.Services
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
flow = "xtls-rprx-vision";//兼容普通tls与xtls
|
|
||||||
obj = new { id = id, flow = flow };
|
obj = new { id = id, flow = flow };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,6 @@ namespace ProxySuper.Core.ViewModels
|
||||||
|
|
||||||
public IMvxCommand AddBrookCommand => new MvxAsyncCommand(AddBrookRecord);
|
public IMvxCommand AddBrookCommand => new MvxAsyncCommand(AddBrookRecord);
|
||||||
|
|
||||||
public IMvxCommand AddHysteriaCommand => new MvxAsyncCommand(AddHysteriaRecord);
|
|
||||||
|
|
||||||
public IMvxCommand RemoveCommand => new MvxAsyncCommand<string>(DeleteRecord);
|
public IMvxCommand RemoveCommand => new MvxAsyncCommand<string>(DeleteRecord);
|
||||||
|
|
||||||
public IMvxCommand EditCommand => new MvxAsyncCommand<string>(EditRecord);
|
public IMvxCommand EditCommand => new MvxAsyncCommand<string>(EditRecord);
|
||||||
|
@ -206,21 +204,6 @@ namespace ProxySuper.Core.ViewModels
|
||||||
SaveToJson();
|
SaveToJson();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task AddHysteriaRecord()
|
|
||||||
{
|
|
||||||
Record record = new Record();
|
|
||||||
record.Id = Utils.GetTickID();
|
|
||||||
record.Host = new Host();
|
|
||||||
record.HysteriaSettings = new HysteriaSettings();
|
|
||||||
|
|
||||||
var result = await _navigationService.Navigate<HysteriaEditorViewModel, Record, Record>(record);
|
|
||||||
if (result == null) return;
|
|
||||||
|
|
||||||
Records.Add(result);
|
|
||||||
|
|
||||||
SaveToJson();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public async Task EditRecord(string id)
|
public async Task EditRecord(string id)
|
||||||
{
|
{
|
||||||
|
@ -276,14 +259,6 @@ namespace ProxySuper.Core.ViewModels
|
||||||
record.Host = result.Host;
|
record.Host = result.Host;
|
||||||
record.MTProtoGoSettings = result.MTProtoGoSettings;
|
record.MTProtoGoSettings = result.MTProtoGoSettings;
|
||||||
}
|
}
|
||||||
if (record.Type == ProjectType.Hysteria)
|
|
||||||
{
|
|
||||||
result = await _navigationService.Navigate<HysteriaEditorViewModel, Record, Record>(record);
|
|
||||||
if (result == null) return;
|
|
||||||
|
|
||||||
record.Host = result.Host;
|
|
||||||
record.HysteriaSettings = result.HysteriaSettings;
|
|
||||||
}
|
|
||||||
|
|
||||||
SaveToJson();
|
SaveToJson();
|
||||||
}
|
}
|
||||||
|
@ -332,10 +307,6 @@ namespace ProxySuper.Core.ViewModels
|
||||||
{
|
{
|
||||||
await _navigationService.Navigate<MTProtoGoConfigViewModel, MTProtoGoSettings>(record.MTProtoGoSettings);
|
await _navigationService.Navigate<MTProtoGoConfigViewModel, MTProtoGoSettings>(record.MTProtoGoSettings);
|
||||||
}
|
}
|
||||||
if (record.Type == ProjectType.Hysteria)
|
|
||||||
{
|
|
||||||
await _navigationService.Navigate<HysteriaConfigViewModel, HysteriaSettings>(record.HysteriaSettings);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task GoToInstall(string id)
|
public async Task GoToInstall(string id)
|
||||||
|
@ -368,10 +339,6 @@ namespace ProxySuper.Core.ViewModels
|
||||||
{
|
{
|
||||||
await _navigationService.Navigate<MTProtoGoInstallViewModel, Record>(record);
|
await _navigationService.Navigate<MTProtoGoInstallViewModel, Record>(record);
|
||||||
}
|
}
|
||||||
if (record.Type == ProjectType.Hysteria)
|
|
||||||
{
|
|
||||||
await _navigationService.Navigate<HysteriaInstallViewModel, Record>(record);
|
|
||||||
}
|
|
||||||
|
|
||||||
SaveToJson();
|
SaveToJson();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
using MvvmCross.ViewModels;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using ProxySuper.Core.Models.Projects;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace ProxySuper.Core.ViewModels
|
|
||||||
{
|
|
||||||
public class HysteriaConfigViewModel : MvxViewModel<HysteriaSettings>
|
|
||||||
{
|
|
||||||
public HysteriaSettings Settings { get; set; }
|
|
||||||
|
|
||||||
public override void Prepare(HysteriaSettings parameter)
|
|
||||||
{
|
|
||||||
Settings = parameter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string ClientJson {
|
|
||||||
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var jsonData = new
|
|
||||||
{
|
|
||||||
server = $"{Settings.Domain}:{Settings.Port}",
|
|
||||||
obfs = Settings.Obfs,
|
|
||||||
up_mbps = 10,
|
|
||||||
down_mbps = 50,
|
|
||||||
socks5 = new
|
|
||||||
{
|
|
||||||
listen = "127.0.0.1:1080"
|
|
||||||
},
|
|
||||||
http = new
|
|
||||||
{
|
|
||||||
listen = "127.0.0.1:1081"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return JsonConvert.SerializeObject(jsonData, Formatting.Indented);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,68 +0,0 @@
|
||||||
using MvvmCross.Commands;
|
|
||||||
using MvvmCross.Navigation;
|
|
||||||
using MvvmCross.ViewModels;
|
|
||||||
using ProxySuper.Core.Models;
|
|
||||||
using ProxySuper.Core.Models.Hosts;
|
|
||||||
using ProxySuper.Core.Models.Projects;
|
|
||||||
using ProxySuper.Core.Services;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Navigation;
|
|
||||||
|
|
||||||
namespace ProxySuper.Core.ViewModels
|
|
||||||
{
|
|
||||||
public class HysteriaEditorViewModel : MvxViewModel<Record, Record>
|
|
||||||
{
|
|
||||||
public string Id { get; set; }
|
|
||||||
|
|
||||||
public Host Host { get; set; }
|
|
||||||
|
|
||||||
public HysteriaSettings Settings { get; set; }
|
|
||||||
|
|
||||||
public IMvxNavigationService NavigationService { get; }
|
|
||||||
|
|
||||||
public IMvxCommand SaveCommand => new MvxCommand(() => Save());
|
|
||||||
|
|
||||||
public IMvxCommand SaveAndInstallCommand => new MvxCommand(SaveAndInstall);
|
|
||||||
|
|
||||||
public HysteriaEditorViewModel(IMvxNavigationService mvxNavigationService)
|
|
||||||
{
|
|
||||||
NavigationService = mvxNavigationService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Prepare(Record parameter)
|
|
||||||
{
|
|
||||||
var record = Utils.DeepClone(parameter);
|
|
||||||
|
|
||||||
Id = record.Id;
|
|
||||||
Host = record.Host;
|
|
||||||
Settings = record.HysteriaSettings;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Save()
|
|
||||||
{
|
|
||||||
NavigationService.Close(this, new Record
|
|
||||||
{
|
|
||||||
Id = Id,
|
|
||||||
Host = Host,
|
|
||||||
HysteriaSettings = Settings,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SaveAndInstall()
|
|
||||||
{
|
|
||||||
var record = new Record
|
|
||||||
{
|
|
||||||
Id = Id,
|
|
||||||
Host = Host,
|
|
||||||
HysteriaSettings = Settings,
|
|
||||||
};
|
|
||||||
|
|
||||||
NavigationService.Close(this, record);
|
|
||||||
NavigationService.Navigate<HysteriaInstallViewModel, Record>(record);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,66 +0,0 @@
|
||||||
using MvvmCross.Commands;
|
|
||||||
using MvvmCross.ViewModels;
|
|
||||||
using ProxySuper.Core.Models;
|
|
||||||
using ProxySuper.Core.Models.Hosts;
|
|
||||||
using ProxySuper.Core.Models.Projects;
|
|
||||||
using ProxySuper.Core.Services;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace ProxySuper.Core.ViewModels
|
|
||||||
{
|
|
||||||
public class HysteriaInstallViewModel : MvxViewModel<Record>
|
|
||||||
{
|
|
||||||
public Host _host { get; set; }
|
|
||||||
|
|
||||||
public HysteriaSettings _settings { get; set; }
|
|
||||||
|
|
||||||
public HysteriaService _service { get; set; }
|
|
||||||
|
|
||||||
public override void Prepare(Record parameter)
|
|
||||||
{
|
|
||||||
_host = parameter.Host;
|
|
||||||
_settings = parameter.HysteriaSettings;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override Task Initialize()
|
|
||||||
{
|
|
||||||
_service = new HysteriaService(_host, _settings);
|
|
||||||
_service.Progress.StepUpdate = () => RaisePropertyChanged("Progress");
|
|
||||||
_service.Progress.LogsUpdate = () => RaisePropertyChanged("Logs");
|
|
||||||
_service.Connect();
|
|
||||||
return base.Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void ViewDestroy(bool viewFinishing = true)
|
|
||||||
{
|
|
||||||
_service.Disconnect();
|
|
||||||
this.SaveInstallLog();
|
|
||||||
base.ViewDestroy(viewFinishing);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProjectProgress Progress => _service.Progress;
|
|
||||||
|
|
||||||
public string Logs => _service.Progress.Logs;
|
|
||||||
|
|
||||||
public IMvxCommand InstallCommand => new MvxCommand(_service.Install);
|
|
||||||
|
|
||||||
public IMvxCommand UninstallCommand => new MvxCommand(_service.Uninstall);
|
|
||||||
|
|
||||||
|
|
||||||
private void SaveInstallLog()
|
|
||||||
{
|
|
||||||
if (!Directory.Exists("Logs"))
|
|
||||||
{
|
|
||||||
Directory.CreateDirectory("Logs");
|
|
||||||
}
|
|
||||||
|
|
||||||
var fileName = System.IO.Path.Combine("Logs", DateTime.Now.ToString("yyyy-MM-dd hh-mm") + ".hysteria.txt");
|
|
||||||
File.WriteAllText(fileName, Logs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@
|
||||||
<package id="Microsoft.Extensions.Logging.Abstractions" version="7.0.0" targetFramework="net472" />
|
<package id="Microsoft.Extensions.Logging.Abstractions" version="7.0.0" targetFramework="net472" />
|
||||||
<package id="MvvmCross" version="8.0.2" targetFramework="net472" />
|
<package id="MvvmCross" version="8.0.2" targetFramework="net472" />
|
||||||
<package id="QRCoder" version="1.4.3" targetFramework="net472" />
|
<package id="QRCoder" version="1.4.3" targetFramework="net472" />
|
||||||
<package id="SSH.NET" version="2023.0.0" targetFramework="net472" />
|
<package id="SSH.NET" version="2020.0.2" targetFramework="net472" />
|
||||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||||
<package id="System.Console" version="4.3.1" targetFramework="net461" />
|
<package id="System.Console" version="4.3.1" targetFramework="net461" />
|
||||||
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<!--Language-->
|
<!--Language-->
|
||||||
<ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" />
|
<ResourceDictionary Source="/Resources/Languages/zh_cn.xaml" />
|
||||||
|
|
||||||
<!--style-->
|
<!--style-->
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<Style TargetType="{x:Type TextBox}">
|
<Style TargetType="{x:Type TextBox}">
|
||||||
|
|
|
@ -13,15 +13,11 @@
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<convert:LoginSecretTypeConverter x:Key="SecretTypeConverter" />
|
<convert:LoginSecretTypeConverter x:Key="SecretTypeConverter" />
|
||||||
<convert:ProxyTypeConverter x:Key="ProxyTypeConverter" />
|
<convert:ProxyTypeConverter x:Key="ProxyTypeConverter" />
|
||||||
<convert:BooleanOrConverter x:Key="BooleanOrConverter" />
|
|
||||||
<convert:BooleanOrToVisibilityConverter x:Key="BooleanOrToVisibilityConverter" />
|
|
||||||
<convert:VisibleConverter x:Key="VisibleConverter" />
|
|
||||||
|
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="330" />
|
<RowDefinition Height="300" />
|
||||||
<RowDefinition Height="auto" />
|
<RowDefinition Height="auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
@ -40,7 +36,6 @@
|
||||||
<RowDefinition Height="36" />
|
<RowDefinition Height="36" />
|
||||||
<RowDefinition Height="36" />
|
<RowDefinition Height="36" />
|
||||||
<RowDefinition Height="36" />
|
<RowDefinition Height="36" />
|
||||||
<RowDefinition Height="36" />
|
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
@ -99,13 +94,7 @@
|
||||||
}" />
|
}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Label Content="{DynamicResource HostUploadSecretKey}"
|
<Label Content="{DynamicResource HostUploadSecretKey}" Grid.Row="6" Grid.Column="0" />
|
||||||
Grid.Row="6" Grid.Column="0"
|
|
||||||
Visibility="{
|
|
||||||
Binding Host.SecretType,
|
|
||||||
Converter={StaticResource VisibleConverter},
|
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
|
||||||
}"/>
|
|
||||||
<Button Height="24"
|
<Button Height="24"
|
||||||
Width="100"
|
Width="100"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
|
@ -116,54 +105,7 @@
|
||||||
Converter={StaticResource SecretTypeConverter},
|
Converter={StaticResource SecretTypeConverter},
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
||||||
}"
|
}"
|
||||||
Visibility="{
|
|
||||||
Binding Host.SecretType,
|
|
||||||
Converter={StaticResource VisibleConverter},
|
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
|
||||||
}"
|
|
||||||
Content="{DynamicResource HostUploadSecretKey}" />
|
Content="{DynamicResource HostUploadSecretKey}" />
|
||||||
|
|
||||||
<Label Content="{DynamicResource HostSertTypePrivateKeyPassPhrase}"
|
|
||||||
Grid.Row="7" Grid.Column="0"
|
|
||||||
Visibility="{
|
|
||||||
Binding Host.SecretType,
|
|
||||||
Converter={StaticResource VisibleConverter},
|
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
|
||||||
}"/>
|
|
||||||
<TextBox Grid.Row="7" Grid.Column="1"
|
|
||||||
Width="170"
|
|
||||||
Text="{Binding Host.PrivateKeyPassPhrase}"
|
|
||||||
IsEnabled="{
|
|
||||||
Binding Host.SecretType,
|
|
||||||
Converter={StaticResource SecretTypeConverter},
|
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
|
||||||
}"
|
|
||||||
Visibility="{
|
|
||||||
Binding Host.SecretType,
|
|
||||||
Converter={StaticResource VisibleConverter},
|
|
||||||
ConverterParameter={x:Static host:LoginSecretType.PrivateKey}
|
|
||||||
}"
|
|
||||||
VerticalContentAlignment="Center" Height="26" >
|
|
||||||
<TextBox.Resources>
|
|
||||||
<VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left">
|
|
||||||
<VisualBrush.Visual>
|
|
||||||
<TextBlock FontStyle="Italic" Text="{DynamicResource TextBoxContentTipsNoneBlank}"/>
|
|
||||||
</VisualBrush.Visual>
|
|
||||||
</VisualBrush>
|
|
||||||
</TextBox.Resources>
|
|
||||||
<TextBox.Style>
|
|
||||||
<Style TargetType="TextBox">
|
|
||||||
<Style.Triggers>
|
|
||||||
<Trigger Property="Text" Value="{x:Null}">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger Property="Text" Value="">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBox.Style>
|
|
||||||
</TextBox>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
||||||
|
@ -190,13 +132,6 @@
|
||||||
Converter={StaticResource ProxyTypeConverter},
|
Converter={StaticResource ProxyTypeConverter},
|
||||||
ConverterParameter={x:Static ssh:ProxyTypes.None}
|
ConverterParameter={x:Static ssh:ProxyTypes.None}
|
||||||
}"/>
|
}"/>
|
||||||
<RadioButton Content="{DynamicResource ProxyTypeSocks5}"
|
|
||||||
Margin="5,0"
|
|
||||||
IsChecked="{
|
|
||||||
Binding Host.Proxy.Type,
|
|
||||||
Converter={StaticResource ProxyTypeConverter},
|
|
||||||
ConverterParameter={x:Static ssh:ProxyTypes.Socks5}
|
|
||||||
}"/>
|
|
||||||
<RadioButton Content="{DynamicResource ProxyTypeHttp}"
|
<RadioButton Content="{DynamicResource ProxyTypeHttp}"
|
||||||
Margin="5,0"
|
Margin="5,0"
|
||||||
IsChecked="{
|
IsChecked="{
|
||||||
|
@ -204,168 +139,26 @@
|
||||||
Converter={StaticResource ProxyTypeConverter},
|
Converter={StaticResource ProxyTypeConverter},
|
||||||
ConverterParameter={x:Static ssh:ProxyTypes.Http}
|
ConverterParameter={x:Static ssh:ProxyTypes.Http}
|
||||||
}"/>
|
}"/>
|
||||||
</StackPanel>
|
<RadioButton Content="{DynamicResource ProxyTypeSocks5}"
|
||||||
|
Margin="5,0"
|
||||||
<Label Content="{DynamicResource ProxyAddress}" Grid.Row="1" Grid.Column="0" >
|
IsChecked="{
|
||||||
<Label.Visibility>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</Label.Visibility>
|
|
||||||
</Label>
|
|
||||||
<TextBox Text="{Binding Host.Proxy.Address}"
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="1" >
|
|
||||||
<!-- IsEnabled="{
|
|
||||||
Binding Host.Proxy.Type,
|
Binding Host.Proxy.Type,
|
||||||
Converter={StaticResource ProxyTypeConverter},
|
Converter={StaticResource ProxyTypeConverter},
|
||||||
ConverterParameter={x:Static ssh:ProxyTypes.Socks5}
|
ConverterParameter={x:Static ssh:ProxyTypes.Socks5}
|
||||||
}" -->
|
}"/>
|
||||||
<TextBox.IsEnabled>
|
</StackPanel>
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.IsEnabled>
|
|
||||||
<TextBox.Visibility>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.Visibility>
|
|
||||||
</TextBox>
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HostPort}" Grid.Row="2" Grid.Column="0" >
|
<Label Content="{DynamicResource ProxyAddress}" Grid.Row="1" Grid.Column="0" />
|
||||||
<Label.Visibility>
|
<TextBox Text="{Binding Host.Proxy.Address}" Grid.Row="1" Grid.Column="1" />
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</Label.Visibility>
|
|
||||||
</Label>
|
|
||||||
<TextBox Text="{Binding Host.Proxy.Port}" Grid.Row="2" Grid.Column="1" >
|
|
||||||
<TextBox.IsEnabled>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.IsEnabled>
|
|
||||||
<TextBox.Visibility>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Http}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.Visibility>
|
|
||||||
</TextBox>
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource ProxyUserName}" Grid.Row="3" Grid.Column="0" >
|
<Label Content="{DynamicResource ProxyUserName}" Grid.Row="2" Grid.Column="0" />
|
||||||
<Label.Visibility>
|
<TextBox Text="{Binding Host.Proxy.UserName}" Grid.Row="2" Grid.Column="1" />
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</Label.Visibility>
|
|
||||||
</Label>
|
|
||||||
<TextBox Text="{Binding Host.Proxy.UserName}" Grid.Row="3" Grid.Column="1" Height="26" >
|
|
||||||
<TextBox.IsEnabled>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.IsEnabled>
|
|
||||||
<TextBox.Visibility>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.Visibility>
|
|
||||||
<TextBox.Resources>
|
|
||||||
<VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left">
|
|
||||||
<VisualBrush.Visual>
|
|
||||||
<TextBlock FontStyle="Italic" Text="{DynamicResource TextBoxContentTipsNoneBlank}"/>
|
|
||||||
</VisualBrush.Visual>
|
|
||||||
</VisualBrush>
|
|
||||||
</TextBox.Resources>
|
|
||||||
<TextBox.Style>
|
|
||||||
<Style TargetType="TextBox">
|
|
||||||
<Style.Triggers>
|
|
||||||
<Trigger Property="Text" Value="{x:Null}">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger Property="Text" Value="">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBox.Style>
|
|
||||||
</TextBox>
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource ProxyPassword}" Grid.Row="4" Grid.Column="0" >
|
<Label Content="{DynamicResource HostPort}" Grid.Row="3" Grid.Column="0" />
|
||||||
<Label.Visibility>
|
<TextBox Text="{Binding Host.Proxy.Port}" Grid.Row="3" Grid.Column="1" />
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
<Label Content="{DynamicResource ProxyPassword}" Grid.Row="4" Grid.Column="0" />
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
<TextBox Text="{Binding Host.Proxy.Password}" Grid.Row="4" Grid.Column="1" />
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</Label.Visibility>
|
|
||||||
</Label>
|
|
||||||
<TextBox Text="{Binding Host.Proxy.Password}" Grid.Row="4" Grid.Column="1" Height="26" >
|
|
||||||
<TextBox.IsEnabled>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type" Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.IsEnabled>
|
|
||||||
<TextBox.Visibility>
|
|
||||||
<MultiBinding Converter="{StaticResource BooleanOrToVisibilityConverter}">
|
|
||||||
<Binding Path="Host.Proxy.Type"
|
|
||||||
Converter="{StaticResource ProxyTypeConverter}"
|
|
||||||
ConverterParameter="{x:Static ssh:ProxyTypes.Socks5}" />
|
|
||||||
</MultiBinding>
|
|
||||||
</TextBox.Visibility>
|
|
||||||
<TextBox.Resources>
|
|
||||||
<VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left">
|
|
||||||
<VisualBrush.Visual>
|
|
||||||
<TextBlock Height="auto" FontStyle="Italic" Text="{DynamicResource TextBoxContentTipsNoneBlank}"/>
|
|
||||||
</VisualBrush.Visual>
|
|
||||||
</VisualBrush>
|
|
||||||
</TextBox.Resources>
|
|
||||||
<TextBox.Style>
|
|
||||||
<Style TargetType="TextBox">
|
|
||||||
<Style.Triggers>
|
|
||||||
<Trigger Property="Text" Value="{x:Null}">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger Property="Text" Value="">
|
|
||||||
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
|
|
||||||
</Trigger>
|
|
||||||
</Style.Triggers>
|
|
||||||
</Style>
|
|
||||||
</TextBox.Style>
|
|
||||||
</TextBox>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
|
@ -116,28 +116,29 @@
|
||||||
<TextBox Text="{Binding Path=Domain}" Width="200" />
|
<TextBox Text="{Binding Path=Domain}" Width="200" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<!--Mask Domain-->
|
||||||
|
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
||||||
|
<Label Content="{DynamicResource XrayMarkDomain}" Width="120" />
|
||||||
|
<TextBox Text="{Binding Path=MaskDomain}" Width="200" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
<!--UUID-->
|
<!--UUID-->
|
||||||
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
||||||
<Label Content="{DynamicResource XrayUUID}" Width="120" />
|
<Label Content="{DynamicResource XrayUUID}" Width="120" />
|
||||||
|
|
||||||
<TextBox Text="{Binding Path=UUID}" Width="200" />
|
<TextBox Text="{Binding Path=UUID}" Width="200" />
|
||||||
|
|
||||||
<Button Margin="5,0,0,0"
|
<Button Margin="5,0,0,0"
|
||||||
Padding="12,3"
|
Padding="12,3"
|
||||||
Command="{Binding Path=RandomUuid}"
|
Command="{Binding Path=RandomUuid}"
|
||||||
Content="{DynamicResource Random}" />
|
Content="{DynamicResource Random}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!--v2ray prot-->
|
|
||||||
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
|
||||||
<Label Content="{DynamicResource V2rayPort}" Width="120" />
|
|
||||||
<TextBox Text="{Binding Path=Port}" Width="120" />
|
|
||||||
<Label Content="{DynamicResource XrayPortDefault}" Foreground="Red" />
|
|
||||||
</StackPanel>
|
|
||||||
<!--#endregion-->
|
<!--#endregion-->
|
||||||
|
|
||||||
<!--more params-->
|
<!--more params-->
|
||||||
<Expander ExpandDirection="Down" Margin="0,10,0,0">
|
<Expander ExpandDirection="Down" Margin="0,10,0,0">
|
||||||
<Expander.Header>
|
<Expander.Header>
|
||||||
<TextBlock Text="{DynamicResource MoreParameters}" FontWeight="Bold" />
|
<TextBlock Text="更多参数" FontWeight="Bold" />
|
||||||
</Expander.Header>
|
</Expander.Header>
|
||||||
|
|
||||||
<Expander.Content>
|
<Expander.Content>
|
||||||
|
@ -153,12 +154,6 @@
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<!--#endregion-->
|
<!--#endregion-->
|
||||||
|
|
||||||
<!--Mask Domain-->
|
|
||||||
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
|
||||||
<Label Content="{DynamicResource XrayMarkDomain}" Width="120" />
|
|
||||||
<TextBox Text="{Binding Path=MaskDomain}" Width="200" />
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!--#region VLESS WebSocket Settings -->
|
<!--#region VLESS WebSocket Settings -->
|
||||||
<!--WebSocket Path-->
|
<!--WebSocket Path-->
|
||||||
<StackPanel Margin="0,15,0,0"
|
<StackPanel Margin="0,15,0,0"
|
||||||
|
@ -442,6 +437,13 @@
|
||||||
<Label Content="{DynamicResource TrojanPassword}" Foreground="CadetBlue" Width="120" />
|
<Label Content="{DynamicResource TrojanPassword}" Foreground="CadetBlue" Width="120" />
|
||||||
<TextBox Text="{Binding Path=TrojanPassword}" Width="200" />
|
<TextBox Text="{Binding Path=TrojanPassword}" Width="200" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<!--v2ray prot-->
|
||||||
|
<StackPanel Margin="0,15,0,0" Orientation="Horizontal">
|
||||||
|
<Label Content="{DynamicResource V2rayPort}" Foreground="Gray" Width="120" />
|
||||||
|
<TextBox Text="{Binding Path=Port}" Width="120" />
|
||||||
|
<Label Content="{DynamicResource XrayPortDefault}" Foreground="Red" />
|
||||||
|
</StackPanel>
|
||||||
<!--#endregion-->
|
<!--#endregion-->
|
||||||
|
|
||||||
<!--#region Multiple Users Settings -->
|
<!--#region Multiple Users Settings -->
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
<Label Content="端口(port)" Width="140" />
|
<Label Content="端口(port)" Width="140" />
|
||||||
<TextBox Text="{Binding Path=Settings.VLESS_QUIC_Port,Mode=OneTime}" IsReadOnly="True" Width="300" />
|
<TextBox Text="{Binding Path=Settings.VLESS_KCP_Port,Mode=OneTime}" IsReadOnly="True" Width="300" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
<Label Content="传输安全(tls)" Width="140" />
|
<Label Content="传输安全(tls)" Width="140" />
|
||||||
<TextBox Text="tls" IsReadOnly="True" Width="300" />
|
<TextBox Text="xtls" IsReadOnly="True" Width="300" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
<Label Content="端口(port)" Width="140" />
|
<Label Content="端口(port)" Width="140" />
|
||||||
<TextBox Text="{Binding Path=Settings.VMESS_QUIC_Port,Mode=OneTime}" IsReadOnly="True" Width="300" />
|
<TextBox Text="{Binding Path=Settings.VMESS_KCP_Port,Mode=OneTime}" IsReadOnly="True" Width="300" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
||||||
|
|
|
@ -17,13 +17,6 @@
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<!--#region VLESS -->
|
<!--#region VLESS -->
|
||||||
<WrapPanel Orientation="Vertical">
|
<WrapPanel Orientation="Vertical">
|
||||||
<!--XTLS+Reality-->
|
|
||||||
<CheckBox Width="150"
|
|
||||||
VerticalContentAlignment="Center"
|
|
||||||
IsChecked="{Binding Path=Checked_VLESS_TCP_XTLS}">
|
|
||||||
<Label Content="{DynamicResource VlessXtlsRealityDesc}" FontSize="12" Foreground="LimeGreen" />
|
|
||||||
</CheckBox>
|
|
||||||
|
|
||||||
<!--XTLS-->
|
<!--XTLS-->
|
||||||
<CheckBox Width="150"
|
<CheckBox Width="150"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
|
@ -152,7 +145,7 @@
|
||||||
<!--more params-->
|
<!--more params-->
|
||||||
<Expander ExpandDirection="Down" Margin="0,10,0,0">
|
<Expander ExpandDirection="Down" Margin="0,10,0,0">
|
||||||
<Expander.Header>
|
<Expander.Header>
|
||||||
<TextBlock Text="{DynamicResource MoreParameters}" FontWeight="Bold" />
|
<TextBlock Text="更多参数" FontWeight="Bold" />
|
||||||
</Expander.Header>
|
</Expander.Header>
|
||||||
|
|
||||||
<Expander.Content>
|
<Expander.Content>
|
||||||
|
@ -174,7 +167,7 @@
|
||||||
Binding Path=Checked_VLESS_TCP_XTLS,
|
Binding Path=Checked_VLESS_TCP_XTLS,
|
||||||
Converter={StaticResource VisibleConverter}
|
Converter={StaticResource VisibleConverter}
|
||||||
}">
|
}">
|
||||||
<Label Content="{DynamicResource Flow}" Width="120" VerticalAlignment="Bottom"/>
|
<Label Content="{Binding Path=Flow}" Width="120" VerticalAlignment="Bottom"/>
|
||||||
<ComboBox Width="260"
|
<ComboBox Width="260"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
ItemsSource="{Binding Path=FlowList}"
|
ItemsSource="{Binding Path=FlowList}"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Icon="/Resources/ProxySU.ico"
|
Icon="/Resources/ProxySU.ico"
|
||||||
Title="ProxySU v4.2.0" Height="600" Width="1000">
|
Title="ProxySU" Height="600" Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -49,5 +49,5 @@ using System.Windows;
|
||||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||||
//通过使用 "*",如下所示:
|
//通过使用 "*",如下所示:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("4.2.0.0")]
|
[assembly: AssemblyVersion("4.1.6.0")]
|
||||||
[assembly: AssemblyFileVersion("4.2.0.0")]
|
[assembly: AssemblyFileVersion("4.1.6.0")]
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<Import Project="..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props')" />
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AllowedReferenceRelatedFileExtensions>
|
<AllowedReferenceRelatedFileExtensions>
|
||||||
|
@ -19,7 +18,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
@ -33,9 +32,6 @@
|
||||||
<StartupObject>ProxySuper.WPF.App</StartupObject>
|
<StartupObject>ProxySuper.WPF.App</StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Costura, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Costura.Fody.6.0.0\lib\netstandard2.0\Costura.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.7.0.0\lib\net462\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
|
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.7.0.0\lib\net462\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
@ -48,8 +44,8 @@
|
||||||
<Reference Include="QRCoder, Version=1.4.3.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
|
<Reference Include="QRCoder, Version=1.4.3.0, Culture=neutral, PublicKeyToken=c4ed5b9ae8358a28, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\QRCoder.1.4.3\lib\net40\QRCoder.dll</HintPath>
|
<HintPath>..\packages\QRCoder.1.4.3\lib\net40\QRCoder.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Renci.SshNet, Version=2023.0.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL">
|
<Reference Include="Renci.SshNet, Version=2020.0.2.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\SSH.NET.2023.0.0\lib\net462\Renci.SshNet.dll</HintPath>
|
<HintPath>..\packages\SSH.NET.2020.0.2\lib\net40\Renci.SshNet.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
@ -162,15 +158,6 @@
|
||||||
<Compile Include="Views\HomeView.xaml.cs">
|
<Compile Include="Views\HomeView.xaml.cs">
|
||||||
<DependentUpon>HomeView.xaml</DependentUpon>
|
<DependentUpon>HomeView.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Views\Hysteria\HysteriaConfigView.xaml.cs">
|
|
||||||
<DependentUpon>HysteriaConfigView.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Views\Hysteria\HysteriaEditorView.xaml.cs">
|
|
||||||
<DependentUpon>HysteriaEditorView.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Views\Hysteria\HysteriaInstallView.xaml.cs">
|
|
||||||
<DependentUpon>HysteriaInstallView.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Views\MTProxyGo\MTProxyGoConfigView.xaml.cs">
|
<Compile Include="Views\MTProxyGo\MTProxyGoConfigView.xaml.cs">
|
||||||
<DependentUpon>MTProxyGoConfigView.xaml</DependentUpon>
|
<DependentUpon>MTProxyGoConfigView.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -321,11 +308,6 @@
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="Resources\Languages\fa_IR.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Resources\Languages\zh_cn.xaml">
|
<Page Include="Resources\Languages\zh_cn.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
@ -336,18 +318,6 @@
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="Views\Hysteria\HysteriaConfigView.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Views\Hysteria\HysteriaEditorView.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Views\Hysteria\HysteriaInstallView.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="Views\MTProxyGo\MTProxyGoConfigView.xaml">
|
<Page Include="Views\MTProxyGo\MTProxyGoConfigView.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
@ -436,9 +406,6 @@
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Templates\Hysteria\config.json">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Include="Templates\NaiveProxy\naive_server.caddyfile">
|
<None Include="Templates\NaiveProxy\naive_server.caddyfile">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
@ -716,10 +683,5 @@
|
||||||
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Error Condition="!Exists('..\packages\System.Runtime.WindowsRuntime.4.7.0\build\net461\System.Runtime.WindowsRuntime.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Runtime.WindowsRuntime.4.7.0\build\net461\System.Runtime.WindowsRuntime.targets'))" />
|
<Error Condition="!Exists('..\packages\System.Runtime.WindowsRuntime.4.7.0\build\net461\System.Runtime.WindowsRuntime.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Runtime.WindowsRuntime.4.7.0\build\net461\System.Runtime.WindowsRuntime.targets'))" />
|
||||||
<Error Condition="!Exists('..\packages\Fody.6.8.2\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.8.2\build\Fody.targets'))" />
|
|
||||||
<Error Condition="!Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props'))" />
|
|
||||||
<Error Condition="!Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets'))" />
|
|
||||||
</Target>
|
</Target>
|
||||||
<Import Project="..\packages\Fody.6.8.2\build\Fody.targets" Condition="Exists('..\packages\Fody.6.8.2\build\Fody.targets')" />
|
|
||||||
<Import Project="..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets')" />
|
|
||||||
</Project>
|
</Project>
|
|
@ -22,14 +22,12 @@
|
||||||
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageFr">فارسی</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="MainMenuHelper">Helper</sys:String>
|
<sys:String x:Key="MainMenuHelper">Helper</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperUseRoot">UseRoot</sys:String>
|
<sys:String x:Key="MainMenuHelperUseRoot">UseRoot</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperCertQuestion">CertQuestion</sys:String>
|
<sys:String x:Key="MainMenuHelperCertQuestion">CertQuestion</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperPrivateKey">PrivateKey</sys:String>
|
<sys:String x:Key="MainMenuHelperPrivateKey">PrivateKey</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperResourcesAndTutorials">Related Resources and Tutorials</sys:String>
|
|
||||||
|
|
||||||
<!--Main DataGrid-->
|
<!--Main DataGrid-->
|
||||||
<sys:String x:Key="MainDataGridColumnTag">Tag</sys:String>
|
<sys:String x:Key="MainDataGridColumnTag">Tag</sys:String>
|
||||||
|
@ -41,7 +39,7 @@
|
||||||
<sys:String x:Key="MainDataGridColumnActionViewConfig">ViewConfig</sys:String>
|
<sys:String x:Key="MainDataGridColumnActionViewConfig">ViewConfig</sys:String>
|
||||||
<sys:String x:Key="MainDataGridColumnActionDelete">Delete</sys:String>
|
<sys:String x:Key="MainDataGridColumnActionDelete">Delete</sys:String>
|
||||||
<sys:String x:Key="MainDataGridColumnActionSortUp">Up</sys:String>
|
<sys:String x:Key="MainDataGridColumnActionSortUp">Up</sys:String>
|
||||||
<sys:String x:Key="MainDataGridColumnActionSortDone">Down</sys:String>
|
<sys:String x:Key="MainDataGridColumnActionSortDone">Done</sys:String>
|
||||||
|
|
||||||
|
|
||||||
<!--Editor Window-->
|
<!--Editor Window-->
|
||||||
|
@ -52,12 +50,10 @@
|
||||||
<sys:String x:Key="HostPassword">Password</sys:String>
|
<sys:String x:Key="HostPassword">Password</sys:String>
|
||||||
<sys:String x:Key="HostPort">Port</sys:String>
|
<sys:String x:Key="HostPort">Port</sys:String>
|
||||||
<sys:String x:Key="HostSecretType">SecretType</sys:String>
|
<sys:String x:Key="HostSecretType">SecretType</sys:String>
|
||||||
<sys:String x:Key="HostUploadSecretKey">LoadingKey</sys:String>
|
<sys:String x:Key="HostUploadSecretKey">UploadKey</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePassword">Password</sys:String>
|
<sys:String x:Key="HostSertTypePassword">Password</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKey">PrivateKey</sys:String>
|
<sys:String x:Key="HostSertTypePrivateKey">PrivateKey</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKeyPassPhrase">PKPassword</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="TextBoxContentTipsNoneBlank">None,Blank</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="ProxyGroupName">Proxy</sys:String>
|
<sys:String x:Key="ProxyGroupName">Proxy</sys:String>
|
||||||
<sys:String x:Key="ProxyAddress">Address</sys:String>
|
<sys:String x:Key="ProxyAddress">Address</sys:String>
|
||||||
|
@ -74,7 +70,6 @@
|
||||||
<sys:String x:Key="EditorProxyParams" xml:space="preserve">Params</sys:String>
|
<sys:String x:Key="EditorProxyParams" xml:space="preserve">Params</sys:String>
|
||||||
|
|
||||||
<!--Xray-->
|
<!--Xray-->
|
||||||
<sys:String x:Key="VlessXtlsRealityDesc" xml:space="preserve">VLESS XTLS REALITY</sys:String>
|
|
||||||
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS XTLS</sys:String>
|
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS XTLS</sys:String>
|
||||||
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
||||||
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
||||||
|
@ -122,7 +117,6 @@
|
||||||
<sys:String x:Key="V2rayPort">v2ray Port</sys:String>
|
<sys:String x:Key="V2rayPort">v2ray Port</sys:String>
|
||||||
<sys:String x:Key="XrayPort">xray Port</sys:String>
|
<sys:String x:Key="XrayPort">xray Port</sys:String>
|
||||||
<sys:String x:Key="XrayPortDefault">default port is 443</sys:String>
|
<sys:String x:Key="XrayPortDefault">default port is 443</sys:String>
|
||||||
<sys:String x:Key="MoreParameters">More Parameters</sys:String>
|
|
||||||
|
|
||||||
<!--xray installer-->
|
<!--xray installer-->
|
||||||
<sys:String x:Key="XrayInstallerInstall">Install</sys:String>
|
<sys:String x:Key="XrayInstallerInstall">Install</sys:String>
|
||||||
|
@ -155,13 +149,4 @@
|
||||||
<sys:String x:Key="MTProtoPort">Port</sys:String>
|
<sys:String x:Key="MTProtoPort">Port</sys:String>
|
||||||
<sys:String x:Key="MTProtoCleartext">Cleantext</sys:String>
|
<sys:String x:Key="MTProtoCleartext">Cleantext</sys:String>
|
||||||
<sys:String x:Key="MTProtoSecretText">Secret</sys:String>
|
<sys:String x:Key="MTProtoSecretText">Secret</sys:String>
|
||||||
|
|
||||||
<!--Hysteria-->
|
|
||||||
<sys:String x:Key="HysteriaDomain">Address</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaPort">Port</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaObfs">OBFS</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaProtocol">Protocol</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaEmail">Email</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaUpMbps">UpMbps</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaDownMbps">DownMbps</sys:String>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
|
@ -1,167 +0,0 @@
|
||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
|
||||||
|
|
||||||
<!--common-->
|
|
||||||
<sys:String x:Key="Random">تصادفی</sys:String>
|
|
||||||
<sys:String x:Key="Save">ذخیره</sys:String>
|
|
||||||
<sys:String x:Key="SaveAndInstall">ذخیره و نصب</sys:String>
|
|
||||||
<sys:String x:Key="SaveAs">ذخیره به عنوان</sys:String>
|
|
||||||
<sys:String x:Key="Install">نصب</sys:String>
|
|
||||||
<sys:String x:Key="Settings">تنظیمات</sys:String>
|
|
||||||
<sys:String x:Key="ReadmeWebsiteDemo">موارد زیر یک اتصال صفحه وب ثابت است که توسط کاربران اینترنتی ارائه شده است، لطفاً بررسی کنید که آیا فایل index.html توسط خودتان وجود دارد یا خیر.</sys:String>
|
|
||||||
|
|
||||||
<!--Main Menu-->
|
|
||||||
<sys:String x:Key="MainMenuAddHost">میزبان اضافه کنید</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuActions">عمل کنند</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuActionsExportSettings">پیکربندی صادرات</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuActionsExportSubscribe">اشتراک صادرات</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuActionsGetRoot">اکانت روت را فعال کنید</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="MainMenuLanguage">زبان(Language)</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuLanguageFr">فارسی</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="MainMenuHelper">یاور</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuHelperUseRoot">اکانت روت را فعال کنید</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuHelperCertQuestion">در مورد گواهینامه</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuHelperPrivateKey">در مورد سوال</sys:String>
|
|
||||||
<sys:String x:Key="MainMenuHelperResourcesAndTutorials">منابع و آموزش های مرتبط</sys:String>
|
|
||||||
|
|
||||||
<!--Main DataGrid-->
|
|
||||||
<sys:String x:Key="MainDataGridColumnTag">برچسب</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnAddress">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnType">نوع</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnAction">عمل کنند</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionInstall">نصب</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionEdit">ویرایش</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionViewConfig">مشاهده پیکربندی</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionDelete">حذف</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionSortUp">بالاا</sys:String>
|
|
||||||
<sys:String x:Key="MainDataGridColumnActionSortDone">پایین</sys:String>
|
|
||||||
|
|
||||||
|
|
||||||
<!--Editor Window-->
|
|
||||||
<sys:String x:Key="HostGroupName">هاست</sys:String>
|
|
||||||
<sys:String x:Key="HostTag">برچسب</sys:String>
|
|
||||||
<sys:String x:Key="HostAddress">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="HostUserName">نام کاربری</sys:String>
|
|
||||||
<sys:String x:Key="HostPassword">رمز عبور</sys:String>
|
|
||||||
<sys:String x:Key="HostPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="HostSecretType">نوع تأیید ورود</sys:String>
|
|
||||||
<sys:String x:Key="HostUploadSecretKey">بارگیری کلید خصوصی</sys:String>
|
|
||||||
<sys:String x:Key="HostSertTypePassword">رمز عبور</sys:String>
|
|
||||||
<sys:String x:Key="HostSertTypePrivateKey">کلید خصوصی</sys:String>
|
|
||||||
<sys:String x:Key="HostSertTypePrivateKeyPassPhrase">رمز عبور PK</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="TextBoxContentTipsNoneBlank">اگر هیچ کدام، آن را خالی بگذارید</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="ProxyGroupName">پروکسی</sys:String>
|
|
||||||
<sys:String x:Key="ProxyAddress">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="ProxyPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="ProxyUserName">نام کاربری</sys:String>
|
|
||||||
<sys:String x:Key="ProxyPassword">رمز عبور</sys:String>
|
|
||||||
<sys:String x:Key="ProxyType">نوع</sys:String>
|
|
||||||
<sys:String x:Key="ProxyTypeNone">None</sys:String>
|
|
||||||
<sys:String x:Key="ProxyTypeHttp">Http</sys:String>
|
|
||||||
<sys:String x:Key="ProxyTypeSocks5">Socks5</sys:String>
|
|
||||||
|
|
||||||
<!--editor-->
|
|
||||||
<sys:String x:Key="EditorProxyType" xml:space="preserve">نوع پروکسی</sys:String>
|
|
||||||
<sys:String x:Key="EditorProxyParams" xml:space="preserve">Params</sys:String>
|
|
||||||
|
|
||||||
<!--Xray-->
|
|
||||||
<sys:String x:Key="VlessXtlsRealityDesc" xml:space="preserve">VLESS TCP XTLS REALITY</sys:String>
|
|
||||||
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS XTLS</sys:String>
|
|
||||||
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
|
||||||
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
|
||||||
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC</sys:String>
|
|
||||||
<sys:String x:Key="VlessKcpDesc" xml:space="preserve">VLESS mKCP</sys:String>
|
|
||||||
<sys:String x:Key="VlessQuicDesc" xml:space="preserve">VLESS QUIC</sys:String>
|
|
||||||
<sys:String x:Key="VmessWsDesc" xml:space="preserve">VMESS WS</sys:String>
|
|
||||||
<sys:String x:Key="VmessKcpDesc" xml:space="preserve">VMESS mKCP</sys:String>
|
|
||||||
<sys:String x:Key="VmessQuicDesc" xml:space="preserve">VMESS QUIC</sys:String>
|
|
||||||
<sys:String x:Key="SSDesc" xml:space="preserve">ShadowSocks</sys:String>
|
|
||||||
<sys:String x:Key="TrojanDesc" xml:space="preserve">Trojan</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="XrayDomain">Domain/IP</sys:String>
|
|
||||||
<sys:String x:Key="XrayMarkDomain">Redir Url</sys:String>
|
|
||||||
<sys:String x:Key="XrayWithTLS">With TLS</sys:String>
|
|
||||||
<sys:String x:Key="XrayWithTLSDesc">Unchecked means upload your own TLS.</sys:String>
|
|
||||||
<sys:String x:Key="XrayUUID">UUID</sys:String>
|
|
||||||
<sys:String x:Key="Flow">Flow</sys:String>
|
|
||||||
<sys:String x:Key="UTLS">uTLS</sys:String>
|
|
||||||
<sys:String x:Key="MultiUser">چند کاربره</sys:String>
|
|
||||||
<sys:String x:Key="MultiUserHelp">چند شناسه تقسیم با ","</sys:String>
|
|
||||||
<sys:String x:Key="VlessWsPath">VLESS WS Path</sys:String>
|
|
||||||
<sys:String x:Key="VlessKcpSeed">VLESS KCP Seed</sys:String>
|
|
||||||
<sys:String x:Key="VlessKcpType">VLESS KCP Type</sys:String>
|
|
||||||
<sys:String x:Key="VlessKcpPort">VLESS KCP Port</sys:String>
|
|
||||||
<sys:String x:Key="VlessQuicPort">VLESS QUIC Port</sys:String>
|
|
||||||
<sys:String x:Key="VlessQuicKey">VLESS QUIC Key</sys:String>
|
|
||||||
<sys:String x:Key="VlessQuicSecurity">VLESS QUIC Security</sys:String>
|
|
||||||
<sys:String x:Key="VlessQuicType">VLESS QUIC Type</sys:String>
|
|
||||||
<sys:String x:Key="VlessRPCName">gRPC Service Name</sys:String>
|
|
||||||
<sys:String x:Key="VlessRPCPort">gRPC Port</sys:String>
|
|
||||||
<sys:String x:Key="VmessWsPath">VMESS WS Path</sys:String>
|
|
||||||
<sys:String x:Key="VmessKcpSeed">VMESS KCP Seed</sys:String>
|
|
||||||
<sys:String x:Key="VmessKcpType">VMESS KCP Type</sys:String>
|
|
||||||
<sys:String x:Key="VmessKcpPort">VMESS KCP Port</sys:String>
|
|
||||||
<sys:String x:Key="VmessQuicKey">VMESS QUIC Key</sys:String>
|
|
||||||
<sys:String x:Key="VmessQuicPort">VMESS QUIC Port</sys:String>
|
|
||||||
<sys:String x:Key="VmessQuicSecurity">VMESS QUIC Security</sys:String>
|
|
||||||
<sys:String x:Key="VmessQuicType">VMESS QUIC Type</sys:String>
|
|
||||||
<sys:String x:Key="SSPassword">SS Pwd</sys:String>
|
|
||||||
<sys:String x:Key="SSMethods">SS Method</sys:String>
|
|
||||||
<sys:String x:Key="SSPort">SS Port</sys:String>
|
|
||||||
<sys:String x:Key="TrojanPassword">Trojan Pwd</sys:String>
|
|
||||||
<sys:String x:Key="TrojanPort">پورت تروجان</sys:String>
|
|
||||||
<sys:String x:Key="V2rayPort">v2ray بندر</sys:String>
|
|
||||||
<sys:String x:Key="XrayPort">xray بندر</sys:String>
|
|
||||||
<sys:String x:Key="XrayPortDefault">پورت پیش فرض 443 است</sys:String>
|
|
||||||
<sys:String x:Key="MoreParameters">پارامترهای بیشتر</sys:String>
|
|
||||||
|
|
||||||
<!--xray installer-->
|
|
||||||
<sys:String x:Key="XrayInstallerInstall">نصب</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerUpdateSettings">بروزرسانی تنظیمات</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerUpdateCore">بروزرسانی هسته</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerUninstall">Uninstall</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerInstallCert">InstallCert</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerUploadWeb">UploadWeb</sys:String>
|
|
||||||
<sys:String x:Key="XrayInstallerUploadCert">UploadCert</sys:String>
|
|
||||||
|
|
||||||
<!--Trojan-GO-->
|
|
||||||
<sys:String x:Key="TrojanGoWithTLS">With TLS</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoWithTLSDesc">Unchecked means upload your own TLS.</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoDomain">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoPassword">رمزعبور</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoMaskDomain">GuiseHost</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoWebSocketPath">WS Path</sys:String>
|
|
||||||
<sys:String x:Key="TrojanGoWebSocketDomain">WS Domain</sys:String>
|
|
||||||
|
|
||||||
<!--Naive Proxy-->
|
|
||||||
<sys:String x:Key="NaiveProxyDomain">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="NaiveProxyPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="NaiveProxyUserName">نام کاربری</sys:String>
|
|
||||||
<sys:String x:Key="NaiveProxyPassword">رمز عبور</sys:String>
|
|
||||||
<sys:String x:Key="NaiveProxyMaskDomain">GuiseHost</sys:String>
|
|
||||||
|
|
||||||
<!--MTProto Go-->
|
|
||||||
<sys:String x:Key="MTProtoDomain">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="MTProtoPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="MTProtoCleartext">Cleantext</sys:String>
|
|
||||||
<sys:String x:Key="MTProtoSecretText">رمز</sys:String>
|
|
||||||
|
|
||||||
<!--Hysteria-->
|
|
||||||
<sys:String x:Key="HysteriaDomain">آدرس</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaPort">پورت</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaObfs">OBFS</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaProtocol">Protocol</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaEmail">ایمیل</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaUpMbps">UpMbps</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaDownMbps">DownMbps</sys:String>
|
|
||||||
</ResourceDictionary>
|
|
|
@ -22,14 +22,12 @@
|
||||||
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageFr">فارسی</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="MainMenuHelper">幫助</sys:String>
|
<sys:String x:Key="MainMenuHelper">幫助</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperUseRoot">啓用Root賬戶</sys:String>
|
<sys:String x:Key="MainMenuHelperUseRoot">啓用Root賬戶</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperCertQuestion">證書問題</sys:String>
|
<sys:String x:Key="MainMenuHelperCertQuestion">證書問題</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperPrivateKey">私鑰問題</sys:String>
|
<sys:String x:Key="MainMenuHelperPrivateKey">私鑰問題</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperResourcesAndTutorials">相關資源與教程</sys:String>
|
|
||||||
|
|
||||||
<!--Main DataGrid-->
|
<!--Main DataGrid-->
|
||||||
<sys:String x:Key="MainDataGridColumnTag">名稱</sys:String>
|
<sys:String x:Key="MainDataGridColumnTag">名稱</sys:String>
|
||||||
|
@ -52,12 +50,9 @@
|
||||||
<sys:String x:Key="HostPassword">密碼</sys:String>
|
<sys:String x:Key="HostPassword">密碼</sys:String>
|
||||||
<sys:String x:Key="HostPort">端口</sys:String>
|
<sys:String x:Key="HostPort">端口</sys:String>
|
||||||
<sys:String x:Key="HostSecretType">登録驗證</sys:String>
|
<sys:String x:Key="HostSecretType">登録驗證</sys:String>
|
||||||
<sys:String x:Key="HostUploadSecretKey">載入私鑰</sys:String>
|
<sys:String x:Key="HostUploadSecretKey">上傳Key</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePassword">密碼</sys:String>
|
<sys:String x:Key="HostSertTypePassword">密碼</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKey">私鑰</sys:String>
|
<sys:String x:Key="HostSertTypePrivateKey">私鑰</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKeyPassPhrase">私鑰密碼</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="TextBoxContentTipsNoneBlank">若無,則留空</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="ProxyGroupName">代理</sys:String>
|
<sys:String x:Key="ProxyGroupName">代理</sys:String>
|
||||||
<sys:String x:Key="ProxyAddress">IP/地址</sys:String>
|
<sys:String x:Key="ProxyAddress">IP/地址</sys:String>
|
||||||
|
@ -74,8 +69,7 @@
|
||||||
<sys:String x:Key="EditorProxyParams" xml:space="preserve">節點參數</sys:String>
|
<sys:String x:Key="EditorProxyParams" xml:space="preserve">節點參數</sys:String>
|
||||||
|
|
||||||
<!--Xray-->
|
<!--Xray-->
|
||||||
<sys:String x:Key="VlessXtlsRealityDesc" xml:space="preserve">VLESS XTLS REALITY</sys:String>
|
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS TCP XTLS</sys:String>
|
||||||
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS XTLS</sys:String>
|
|
||||||
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
||||||
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
||||||
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC</sys:String>
|
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC</sys:String>
|
||||||
|
@ -123,7 +117,6 @@
|
||||||
<sys:String x:Key="V2rayPort">V2ray端口</sys:String>
|
<sys:String x:Key="V2rayPort">V2ray端口</sys:String>
|
||||||
<sys:String x:Key="XrayPort">XRAY端口</sys:String>
|
<sys:String x:Key="XrayPort">XRAY端口</sys:String>
|
||||||
<sys:String x:Key="XrayPortDefault">默認端口443,不建議修改</sys:String>
|
<sys:String x:Key="XrayPortDefault">默認端口443,不建議修改</sys:String>
|
||||||
<sys:String x:Key="MoreParameters">更多參數</sys:String>
|
|
||||||
|
|
||||||
<!--xray installer-->
|
<!--xray installer-->
|
||||||
<sys:String x:Key="XrayInstallerInstall">一鍵安裝</sys:String>
|
<sys:String x:Key="XrayInstallerInstall">一鍵安裝</sys:String>
|
||||||
|
@ -157,13 +150,4 @@
|
||||||
<sys:String x:Key="MTProtoPort">端口</sys:String>
|
<sys:String x:Key="MTProtoPort">端口</sys:String>
|
||||||
<sys:String x:Key="MTProtoCleartext">加密前字符</sys:String>
|
<sys:String x:Key="MTProtoCleartext">加密前字符</sys:String>
|
||||||
<sys:String x:Key="MTProtoSecretText">密鑰</sys:String>
|
<sys:String x:Key="MTProtoSecretText">密鑰</sys:String>
|
||||||
|
|
||||||
<!--Hysteria-->
|
|
||||||
<sys:String x:Key="HysteriaDomain">域名</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaPort">端口</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaObfs">加密字符</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaEmail">郵箱</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaProtocol">協議</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaUpMbps">上傳限速</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaDownMbps">下載限速</sys:String>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
|
@ -22,14 +22,12 @@
|
||||||
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
<sys:String x:Key="MainMenuLanguageEn">English</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
<sys:String x:Key="MainMenuLanguageCn">中文</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
<sys:String x:Key="MainMenuLanguageTw">正體</sys:String>
|
||||||
<sys:String x:Key="MainMenuLanguageFr">فارسی</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="MainMenuHelper">帮助</sys:String>
|
<sys:String x:Key="MainMenuHelper">帮助</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
<sys:String x:Key="MainMenuHelperGithub">Github</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperUseRoot">启用Root账户</sys:String>
|
<sys:String x:Key="MainMenuHelperUseRoot">启用Root账户</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperCertQuestion">证书问题</sys:String>
|
<sys:String x:Key="MainMenuHelperCertQuestion">证书问题</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperPrivateKey">私钥问题</sys:String>
|
<sys:String x:Key="MainMenuHelperPrivateKey">私钥问题</sys:String>
|
||||||
<sys:String x:Key="MainMenuHelperResourcesAndTutorials">相关资源与教程</sys:String>
|
|
||||||
|
|
||||||
<!--Main DataGrid-->
|
<!--Main DataGrid-->
|
||||||
<sys:String x:Key="MainDataGridColumnTag">名称</sys:String>
|
<sys:String x:Key="MainDataGridColumnTag">名称</sys:String>
|
||||||
|
@ -53,12 +51,9 @@
|
||||||
<sys:String x:Key="HostPassword">密码</sys:String>
|
<sys:String x:Key="HostPassword">密码</sys:String>
|
||||||
<sys:String x:Key="HostPort">端口</sys:String>
|
<sys:String x:Key="HostPort">端口</sys:String>
|
||||||
<sys:String x:Key="HostSecretType">登陆验证</sys:String>
|
<sys:String x:Key="HostSecretType">登陆验证</sys:String>
|
||||||
<sys:String x:Key="HostUploadSecretKey">载入私钥</sys:String>
|
<sys:String x:Key="HostUploadSecretKey">上传Key</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePassword">密码</sys:String>
|
<sys:String x:Key="HostSertTypePassword">密码</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKey">私钥</sys:String>
|
<sys:String x:Key="HostSertTypePrivateKey">私钥</sys:String>
|
||||||
<sys:String x:Key="HostSertTypePrivateKeyPassPhrase">私钥密码</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="TextBoxContentTipsNoneBlank">若无,则留空</sys:String>
|
|
||||||
|
|
||||||
<sys:String x:Key="ProxyGroupName">代理</sys:String>
|
<sys:String x:Key="ProxyGroupName">代理</sys:String>
|
||||||
<sys:String x:Key="ProxyAddress">IP/地址</sys:String>
|
<sys:String x:Key="ProxyAddress">IP/地址</sys:String>
|
||||||
|
@ -75,8 +70,7 @@
|
||||||
<sys:String x:Key="EditorProxyParams" xml:space="preserve">节点参数</sys:String>
|
<sys:String x:Key="EditorProxyParams" xml:space="preserve">节点参数</sys:String>
|
||||||
|
|
||||||
<!--Xray-->
|
<!--Xray-->
|
||||||
<sys:String x:Key="VlessXtlsRealityDesc" xml:space="preserve">VLESS XTLS REALITY</sys:String>
|
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS TCP XTLS</sys:String>
|
||||||
<sys:String x:Key="VlessXtlsDesc" xml:space="preserve">VLESS XTLS</sys:String>
|
|
||||||
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
<sys:String x:Key="VlessTcpDesc" xml:space="preserve">VLESS TCP</sys:String>
|
||||||
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
<sys:String x:Key="VlessWsDesc" xml:space="preserve">VLESS WS</sys:String>
|
||||||
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC</sys:String>
|
<sys:String x:Key="VlessRpcDesc" xml:space="preserve">VLESS gRPC</sys:String>
|
||||||
|
@ -124,7 +118,6 @@
|
||||||
<sys:String x:Key="V2rayPort">V2ray端口</sys:String>
|
<sys:String x:Key="V2rayPort">V2ray端口</sys:String>
|
||||||
<sys:String x:Key="XrayPort">XRAY端口</sys:String>
|
<sys:String x:Key="XrayPort">XRAY端口</sys:String>
|
||||||
<sys:String x:Key="XrayPortDefault">默认端口443,不建议修改</sys:String>
|
<sys:String x:Key="XrayPortDefault">默认端口443,不建议修改</sys:String>
|
||||||
<sys:String x:Key="MoreParameters">更多参数</sys:String>
|
|
||||||
|
|
||||||
<!--xray installer-->
|
<!--xray installer-->
|
||||||
<sys:String x:Key="XrayInstallerInstall">一键安装</sys:String>
|
<sys:String x:Key="XrayInstallerInstall">一键安装</sys:String>
|
||||||
|
@ -158,13 +151,4 @@
|
||||||
<sys:String x:Key="MTProtoPort">端口</sys:String>
|
<sys:String x:Key="MTProtoPort">端口</sys:String>
|
||||||
<sys:String x:Key="MTProtoCleartext">加密前字符</sys:String>
|
<sys:String x:Key="MTProtoCleartext">加密前字符</sys:String>
|
||||||
<sys:String x:Key="MTProtoSecretText">密钥</sys:String>
|
<sys:String x:Key="MTProtoSecretText">密钥</sys:String>
|
||||||
|
|
||||||
<!--Hysteria-->
|
|
||||||
<sys:String x:Key="HysteriaDomain">域名</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaPort">端口</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaObfs">加密字符</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaProtocol">协议</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaEmail">邮箱</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaUpMbps">上传限速</sys:String>
|
|
||||||
<sys:String x:Key="HysteriaDownMbps">下载限速</sys:String>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"listen": ":36712",
|
|
||||||
"acme": {
|
|
||||||
"domains": [
|
|
||||||
"your.domain.com"
|
|
||||||
],
|
|
||||||
"email": "your@email.com"
|
|
||||||
},
|
|
||||||
"obfs": "8ZuA2Zpqhuk8yakXvMjDqEXBwY"
|
|
||||||
}
|
|
|
@ -5,7 +5,7 @@
|
||||||
"clients": [
|
"clients": [
|
||||||
{
|
{
|
||||||
"id": "",
|
"id": "",
|
||||||
"flow": "xtls-rprx-vision"
|
"flow": "xtls-rprx-direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"decryption": "none",
|
"decryption": "none",
|
||||||
|
@ -13,13 +13,15 @@
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "tcp",
|
||||||
"security": "tls",
|
"security": "xtls",
|
||||||
"tlsSettings": {
|
"xtlsSettings": {
|
||||||
"rejectUnknownSni": true,
|
"allowInsecure": false,
|
||||||
"minVersion": "1.2",
|
"minVersion": "1.2",
|
||||||
|
"alpn": [
|
||||||
|
"http/1.1"
|
||||||
|
],
|
||||||
"certificates": [
|
"certificates": [
|
||||||
{
|
{
|
||||||
"ocspStapling": 3600,
|
|
||||||
"certificateFile": "/usr/local/etc/xray/ssl/xray_ssl.crt",
|
"certificateFile": "/usr/local/etc/xray/ssl/xray_ssl.crt",
|
||||||
"keyFile": "/usr/local/etc/xray/ssl/xray_ssl.key"
|
"keyFile": "/usr/local/etc/xray/ssl/xray_ssl.key"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
BorderBrush="#eee"
|
BorderBrush="#eee"
|
||||||
Icon="/Resources/ProxySU.ico"
|
Icon="/Resources/ProxySU.ico"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="BrookEditorView" Height="640" Width="1000">
|
Title="BrookEditorView" Height="600" Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="310" />
|
<ColumnDefinition Width="310" />
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
<MenuItem Padding="0,5" Header="Trojan-Go" Command="{Binding AddTrojanGoCommand}"></MenuItem>
|
<MenuItem Padding="0,5" Header="Trojan-Go" Command="{Binding AddTrojanGoCommand}"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="NaiveProxy" Command="{Binding AddNaiveProxyCommand}"></MenuItem>
|
<MenuItem Padding="0,5" Header="NaiveProxy" Command="{Binding AddNaiveProxyCommand}"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="Brook" Command="{Binding AddBrookCommand}"></MenuItem>
|
<MenuItem Padding="0,5" Header="Brook" Command="{Binding AddBrookCommand}"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="Hysteria" Command="{Binding AddHysteriaCommand}"></MenuItem>
|
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
||||||
<MenuItem Header="{DynamicResource MainMenuActions}" Padding="10,3">
|
<MenuItem Header="{DynamicResource MainMenuActions}" Padding="10,3">
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageEn}" Click="SetEnglish"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageEn}" Click="SetEnglish"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageTw}" Click="SetTwCN"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageTw}" Click="SetTwCN"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageCn}" Click="SetSimpleChinese"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageCn}" Click="SetSimpleChinese"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuLanguageFr}" Click="SetIrFA"></MenuItem>
|
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
||||||
<MenuItem Header="{DynamicResource MainMenuHelper}" Padding="10,3">
|
<MenuItem Header="{DynamicResource MainMenuHelper}" Padding="10,3">
|
||||||
|
@ -41,7 +39,6 @@
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperUseRoot}" Click="LaunchUseRootSite"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperUseRoot}" Click="LaunchUseRootSite"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperCertQuestion}" Click="LaunchCertQuestion"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperCertQuestion}" Click="LaunchCertQuestion"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperPrivateKey}" Click="LaunchPrivateKeyQuestion"></MenuItem>
|
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperPrivateKey}" Click="LaunchPrivateKeyQuestion"></MenuItem>
|
||||||
<MenuItem Padding="0,5" Header="{DynamicResource MainMenuHelperResourcesAndTutorials}" Click="LaunchResourcesAndTutorials"></MenuItem>
|
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|
||||||
|
@ -88,10 +85,7 @@
|
||||||
</DataGridTextColumn.Header>
|
</DataGridTextColumn.Header>
|
||||||
</DataGridTextColumn>
|
</DataGridTextColumn>
|
||||||
|
|
||||||
<DataGridTemplateColumn Width="400">
|
<DataGridTemplateColumn Header="{DynamicResource MainDataGridColumnAction}" Width="400">
|
||||||
<DataGridTemplateColumn.Header>
|
|
||||||
<TextBlock Text="{DynamicResource MainDataGridColumnAction}" />
|
|
||||||
</DataGridTemplateColumn.Header>
|
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
<ItemContainerTemplate>
|
<ItemContainerTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
|
|
|
@ -62,10 +62,6 @@ namespace ProxySuper.WPF.Views
|
||||||
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/proxysu/ProxySU/wiki/PrivateKey%E8%BD%AC%E6%8D%A2");
|
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/proxysu/ProxySU/wiki/PrivateKey%E8%BD%AC%E6%8D%A2");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LaunchResourcesAndTutorials(object sender, RoutedEventArgs e)
|
|
||||||
{
|
|
||||||
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/proxysu/ProxySU/wiki/%E7%9B%B8%E5%85%B3%E8%B5%84%E6%BA%90%E4%B8%8E%E6%95%99%E7%A8%8B");
|
|
||||||
}
|
|
||||||
|
|
||||||
ResourceDictionary resource = new ResourceDictionary();
|
ResourceDictionary resource = new ResourceDictionary();
|
||||||
private void SetSimpleChinese(object sender, RoutedEventArgs e)
|
private void SetSimpleChinese(object sender, RoutedEventArgs e)
|
||||||
|
@ -73,11 +69,7 @@ namespace ProxySuper.WPF.Views
|
||||||
resource.Source = new Uri(@"Resources\Languages\zh_cn.xaml", UriKind.Relative);
|
resource.Source = new Uri(@"Resources\Languages\zh_cn.xaml", UriKind.Relative);
|
||||||
Application.Current.Resources.MergedDictionaries[0] = resource;
|
Application.Current.Resources.MergedDictionaries[0] = resource;
|
||||||
}
|
}
|
||||||
private void SetIrFA(object sender, RoutedEventArgs e)
|
|
||||||
{
|
|
||||||
resource.Source = new Uri(@"Resources\Languages\fa_IR.xaml", UriKind.Relative);
|
|
||||||
Application.Current.Resources.MergedDictionaries[0] = resource;
|
|
||||||
}
|
|
||||||
private void SetEnglish(object sender, RoutedEventArgs e)
|
private void SetEnglish(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
resource.Source = new Uri(@"Resources\Languages\en.xaml", UriKind.Relative);
|
resource.Source = new Uri(@"Resources\Languages\en.xaml", UriKind.Relative);
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
<views:MvxWindow x:Class="ProxySuper.WPF.Views.Hysteria.HysteriaConfigView"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:local="clr-namespace:ProxySuper.WPF.Views.Hysteria"
|
|
||||||
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
||||||
mc:Ignorable="d"
|
|
||||||
WindowStartupLocation="CenterScreen"
|
|
||||||
Title="Hysteria配置" Height="450" Width="800">
|
|
||||||
<StackPanel Margin="20">
|
|
||||||
<TextBox Height="360" Text="{Binding ClientJson, Mode=OneWay}" IsReadOnly="True" />
|
|
||||||
</StackPanel>
|
|
||||||
</views:MvxWindow>
|
|
|
@ -1,30 +0,0 @@
|
||||||
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
|
|
||||||
using MvvmCross.Platforms.Wpf.Views;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows;
|
|
||||||
using System.Windows.Controls;
|
|
||||||
using System.Windows.Data;
|
|
||||||
using System.Windows.Documents;
|
|
||||||
using System.Windows.Input;
|
|
||||||
using System.Windows.Media;
|
|
||||||
using System.Windows.Media.Imaging;
|
|
||||||
using System.Windows.Shapes;
|
|
||||||
|
|
||||||
namespace ProxySuper.WPF.Views.Hysteria
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// HysteriaConfigView.xaml 的交互逻辑
|
|
||||||
/// </summary>
|
|
||||||
[MvxWindowPresentation]
|
|
||||||
public partial class HysteriaConfigView : MvxWindow
|
|
||||||
{
|
|
||||||
public HysteriaConfigView()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
<views:MvxWindow x:Class="ProxySuper.WPF.Views.Hysteria.HysteriaEditorView"
|
|
||||||
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:local="clr-namespace:ProxySuper.WPF.Views.Hysteria"
|
|
||||||
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
|
|
||||||
mc:Ignorable="d"
|
|
||||||
BorderThickness="0,1,0,0"
|
|
||||||
BorderBrush="#eee"
|
|
||||||
Icon="/Resources/ProxySU.ico"
|
|
||||||
WindowStartupLocation="CenterScreen"
|
|
||||||
Title="Hysteria编辑配置" Height="640" Width="1000">
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="310" />
|
|
||||||
<ColumnDefinition Width="1" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<StackPanel Grid.Column="0" Margin="10">
|
|
||||||
<ctrl:HostControl />
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Grid.Column="1" Background="#EEE"></StackPanel>
|
|
||||||
|
|
||||||
<Grid Grid.Column="2" Margin="10,10,0,0">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="36" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
<RowDefinition Height="50" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="120" />
|
|
||||||
<ColumnDefinition Width="200" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HysteriaDomain}" Grid.Row="0" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.Domain}" Grid.Row="0" Grid.Column="1" />
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HysteriaPort}" Grid.Row="1" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.Port}" Grid.Row="1" Grid.Column="1" />
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HysteriaObfs}" Grid.Row="2" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.Obfs}" Grid.Row="2" Grid.Column="1" />
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HysteriaEmail}" Grid.Row="3" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.Email}" Grid.Row="3" Grid.Column="1" />
|
|
||||||
|
|
||||||
<!--<Label Content="{DynamicResource HysteriaProtocol}" Grid.Row="4" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.Protocol}" Grid.Row="4" Grid.Column="1" />-->
|
|
||||||
|
|
||||||
<!--<Label Content="{DynamicResource HysteriaUpMbps}" Grid.Row="5" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.UpMbps}" Grid.Row="5" Grid.Column="1" />
|
|
||||||
|
|
||||||
<Label Content="{DynamicResource HysteriaDownMbps}" Grid.Row="6" Grid.Column="0" />
|
|
||||||
<TextBox Text="{Binding Settings.DownMbps}" Grid.Row="6" Grid.Column="1" />-->
|
|
||||||
|
|
||||||
<Border Grid.Row="8"
|
|
||||||
Grid.ColumnSpan="3"
|
|
||||||
BorderBrush="#eee"
|
|
||||||
BorderThickness="0,1,0,0">
|
|
||||||
<StackPanel Orientation="Horizontal"
|
|
||||||
HorizontalAlignment="Right">
|
|
||||||
<Button Content="{DynamicResource Save}"
|
|
||||||
Command="{Binding SaveCommand}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Padding="10,5" />
|
|
||||||
|
|
||||||
<Button Content="{DynamicResource SaveAndInstall}"
|
|
||||||
Command="{Binding SaveAndInstallCommand}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Padding="10,5"
|
|
||||||
Margin="20,0,40,0" />
|
|
||||||
</StackPanel>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</views:MvxWindow>
|
|
|
@ -1,29 +0,0 @@
|
||||||
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
|
|
||||||
using MvvmCross.Platforms.Wpf.Views;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows;
|
|
||||||
using System.Windows.Controls;
|
|
||||||
using System.Windows.Data;
|
|
||||||
using System.Windows.Documents;
|
|
||||||
using System.Windows.Input;
|
|
||||||
using System.Windows.Media;
|
|
||||||
using System.Windows.Media.Imaging;
|
|
||||||
using System.Windows.Shapes;
|
|
||||||
|
|
||||||
namespace ProxySuper.WPF.Views.Hysteria
|
|
||||||
{
|
|
||||||
[MvxWindowPresentation]
|
|
||||||
public partial class HysteriaEditorView : MvxWindow
|
|
||||||
{
|
|
||||||
public HysteriaEditorView()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
<views:MvxWindow x:Class="ProxySuper.WPF.Views.Hysteria.HysteriaInstallView"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:local="clr-namespace:ProxySuper.WPF.Views.Hysteria"
|
|
||||||
xmlns:ctrl="clr-namespace:ProxySuper.WPF.Controls"
|
|
||||||
xmlns:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
||||||
mc:Ignorable="d"
|
|
||||||
WindowStartupLocation="CenterScreen"
|
|
||||||
Title="Hysteria安装" Height="450" Width="800">
|
|
||||||
<StackPanel>
|
|
||||||
<ctrl:ProgressControl />
|
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Margin="20,0,0,0">
|
|
||||||
<Label Content="{DynamicResource Install}" FontWeight="Bold" FontSize="14" />
|
|
||||||
|
|
||||||
<Button Content="{DynamicResource XrayInstallerInstall}"
|
|
||||||
Command="{Binding Path=InstallCommand}"
|
|
||||||
Padding="10,3"
|
|
||||||
Margin="10,0,0,0" />
|
|
||||||
|
|
||||||
<!--<Button Content="{DynamicResource XrayInstallerUpdateSettings}"
|
|
||||||
Command="{Binding Path=UpdateSettingsCommand}"
|
|
||||||
Padding="10,3"
|
|
||||||
Margin="10,0,0,0" />-->
|
|
||||||
|
|
||||||
<Button Content="{DynamicResource XrayInstallerUninstall}"
|
|
||||||
Command="{Binding Path=UninstallCommand}"
|
|
||||||
Padding="10,3"
|
|
||||||
Margin="10,0,0,0" />
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
|
||||||
</views:MvxWindow>
|
|
|
@ -1,30 +0,0 @@
|
||||||
using MvvmCross.Platforms.Wpf.Presenters.Attributes;
|
|
||||||
using MvvmCross.Platforms.Wpf.Views;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows;
|
|
||||||
using System.Windows.Controls;
|
|
||||||
using System.Windows.Data;
|
|
||||||
using System.Windows.Documents;
|
|
||||||
using System.Windows.Input;
|
|
||||||
using System.Windows.Media;
|
|
||||||
using System.Windows.Media.Imaging;
|
|
||||||
using System.Windows.Shapes;
|
|
||||||
|
|
||||||
namespace ProxySuper.WPF.Views.Hysteria
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// HysteriaInstallView.xaml 的交互逻辑
|
|
||||||
/// </summary>
|
|
||||||
[MvxWindowPresentation]
|
|
||||||
public partial class HysteriaInstallView : MvxWindow
|
|
||||||
{
|
|
||||||
public HysteriaInstallView()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -11,7 +11,7 @@
|
||||||
BorderBrush="#eee"
|
BorderBrush="#eee"
|
||||||
Icon="/Resources/ProxySU.ico"
|
Icon="/Resources/ProxySU.ico"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="MTProto-Go编辑配置" Height="640" Width="1000">
|
Title="MTProto-Go编辑配置" Height="600" Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="310" />
|
<ColumnDefinition Width="310" />
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
BorderBrush="#eee"
|
BorderBrush="#eee"
|
||||||
Icon="/Resources/ProxySU.ico"
|
Icon="/Resources/ProxySU.ico"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="NaiveProxy编辑配置" Height="640" Width="1000">
|
Title="NaiveProxy编辑配置" Height="600" Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="310" />
|
<ColumnDefinition Width="310" />
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
BorderBrush="#eee"
|
BorderBrush="#eee"
|
||||||
Icon="/Resources/ProxySU.ico"
|
Icon="/Resources/ProxySU.ico"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Title="Trojan-Go编辑配置" Height="640" Width="1000">
|
Title="Trojan-Go编辑配置" Height="600" Width="1000">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="310" />
|
<ColumnDefinition Width="310" />
|
||||||
|
|
|
@ -45,13 +45,6 @@
|
||||||
<ctrl:VLESS_KCP_Control />
|
<ctrl:VLESS_KCP_Control />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<TabItem Width="200" Height="40"
|
|
||||||
Tag="{x:Static models:RayType.VLESS_QUIC}"
|
|
||||||
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
|
||||||
Header="VLESS-QUIC">
|
|
||||||
<ctrl:VLESS_QUIC_Control />
|
|
||||||
</TabItem>
|
|
||||||
|
|
||||||
<TabItem Width="200" Height="40"
|
<TabItem Width="200" Height="40"
|
||||||
Tag="{x:Static models:RayType.VLESS_gRPC}"
|
Tag="{x:Static models:RayType.VLESS_gRPC}"
|
||||||
IsEnabled="{Binding Checked_VLESS_gRPC}"
|
IsEnabled="{Binding Checked_VLESS_gRPC}"
|
||||||
|
@ -80,13 +73,6 @@
|
||||||
<ctrl:VMESS_KCP_Control />
|
<ctrl:VMESS_KCP_Control />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
<TabItem Width="200" Height="40"
|
|
||||||
Tag="{x:Static models:RayType.VMESS_QUIC}"
|
|
||||||
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
|
||||||
Header="VMESS-QUIC">
|
|
||||||
<ctrl:VMESS_QUIC_Control />
|
|
||||||
</TabItem>
|
|
||||||
|
|
||||||
<TabItem Width="200" Height="40"
|
<TabItem Width="200" Height="40"
|
||||||
Tag="{x:Static models:RayType.Trojan_TCP}"
|
Tag="{x:Static models:RayType.Trojan_TCP}"
|
||||||
IsEnabled="{Binding Checked_Trojan_TCP}"
|
IsEnabled="{Binding Checked_Trojan_TCP}"
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<TabItem Width="200" Height="40"
|
<TabItem Width="200" Height="40"
|
||||||
Tag="{x:Static models:RayType.VLESS_QUIC}"
|
Tag="{x:Static models:RayType.VLESS_QUIC}"
|
||||||
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
||||||
Header="VLESS-QUIC">
|
Header="VLESS-Quic">
|
||||||
<ctrl:VLESS_QUIC_Control />
|
<ctrl:VLESS_QUIC_Control />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
<TabItem Width="200" Height="40"
|
<TabItem Width="200" Height="40"
|
||||||
Tag="{x:Static models:RayType.VMESS_QUIC}"
|
Tag="{x:Static models:RayType.VMESS_QUIC}"
|
||||||
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
IsEnabled="{Binding Checked_VLESS_QUIC}"
|
||||||
Header="VMESS-QUIC">
|
Header="VMESS-Quic">
|
||||||
<ctrl:VMESS_QUIC_Control />
|
<ctrl:VMESS_QUIC_Control />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Costura.Fody" version="6.0.0" targetFramework="net472" developmentDependency="true" />
|
|
||||||
<package id="Fody" version="6.8.2" targetFramework="net472" developmentDependency="true" />
|
|
||||||
<package id="Microsoft.Extensions.Logging.Abstractions" version="7.0.0" targetFramework="net472" />
|
<package id="Microsoft.Extensions.Logging.Abstractions" version="7.0.0" targetFramework="net472" />
|
||||||
<package id="MvvmCross" version="8.0.2" targetFramework="net472" />
|
<package id="MvvmCross" version="8.0.2" targetFramework="net472" />
|
||||||
<package id="MvvmCross.Platforms.Wpf" version="8.0.2" targetFramework="net472" />
|
<package id="MvvmCross.Platforms.Wpf" version="8.0.2" targetFramework="net472" />
|
||||||
<package id="QRCoder" version="1.4.3" targetFramework="net472" />
|
<package id="QRCoder" version="1.4.3" targetFramework="net472" />
|
||||||
<package id="SSH.NET" version="2023.0.0" targetFramework="net472" />
|
<package id="SSH.NET" version="2020.0.2" targetFramework="net472" />
|
||||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||||
<package id="System.Console" version="4.3.1" targetFramework="net461" />
|
<package id="System.Console" version="4.3.1" targetFramework="net461" />
|
||||||
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||||
|
|
27
README.md
27
README.md
|
@ -1,13 +1,10 @@
|
||||||
# ProxySU
|
# ProxySU
|
||||||
V2ray, Xray, Trojan, NaiveProxy, Trojan-Go, MTProto Go, Brook,BBR install tools for windows。
|
V2ray, Xray, Trojan, NaiveProxy, Trojan-Go, MTProto Go, Brook,BBR install tools for windows。
|
||||||
V2ray,Xray, Trojan,NaiveProxy, Trojan-Go, MTProto Go, Brook 及相关插件。支持纯ipv6主机一键安装代理。
|
V2ray,Xray, Trojan,NaiveProxy, Trojan-Go, MTProto Go, Brook 及相关插件。支持纯ipv6主机一键安装代理。
|
||||||
BBR一键开启(仅支持CentOS8/Debian9/10/Ubuntu18.04及以上),支持语言:English、简体中文、正体(繁体)中文,波斯语。
|
BBR一键开启(仅支持CentOS8/Debian9/10/Ubuntu18.04及以上),支持语言:English、简体中文、正体(繁体)中文。
|
||||||
|
|
||||||
编译环境Visual Studio 2019 使用WPF界面。可一键安装 V2ray/Xray, Shadowsocks, Trojan, Trojan-Go, NaiveProxy, MTProto Go, Brook 后续还会再添加其他。
|
编译环境Visual Studio 2019 使用WPF界面。可一键安装 V2ray/Xray, Shadowsocks, Trojan, Trojan-Go, NaiveProxy, MTProto Go, Brook 后续还会再添加其他。
|
||||||
|
|
||||||
零基础用户,强烈建议看一下[Xray官网](https://xtls.github.io)的[小小白白话文-自建教程](https://xtls.github.io/document/level-0)。
|
|
||||||
更多相关资源与工具请看本项目Wiki[资源和工具](https://github.com/proxysu/ProxySU/wiki/%E8%B5%84%E6%BA%90%E5%92%8C%E5%B7%A5%E5%85%B7)。
|
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
@ -18,9 +15,8 @@ BBR一键开启(仅支持CentOS8/Debian9/10/Ubuntu18.04及以上),支持语
|
||||||
#### 再次声明:
|
#### 再次声明:
|
||||||
##### ProxySU本着技术中立的原则,没有任何立场,也不持任何见解,更不涉及任何政治因素。ProxySU仅仅主张人的知情权,这是一项天赋人权,也是各国宪法所保障的最基本人权。知情权包含对同一事物正负两方面评价的知情,至于相信哪个,由人自己选择。正如李文亮医生临终所言:一个正常的社会是不应该只有一种声音的。如果真的存在对某一事物只有一种声音的评价,无论其评价是正面还是负面,都是要慎重对待,并需要重新审视的。
|
##### ProxySU本着技术中立的原则,没有任何立场,也不持任何见解,更不涉及任何政治因素。ProxySU仅仅主张人的知情权,这是一项天赋人权,也是各国宪法所保障的最基本人权。知情权包含对同一事物正负两方面评价的知情,至于相信哪个,由人自己选择。正如李文亮医生临终所言:一个正常的社会是不应该只有一种声音的。如果真的存在对某一事物只有一种声音的评价,无论其评价是正面还是负面,都是要慎重对待,并需要重新审视的。
|
||||||
|
|
||||||
|
##### 上传自有证书 #####
|
||||||
##### 代理版本的选择
|
需要将crt和key文件打包成zip,在安装界面选择“上传自有证书”
|
||||||
多数情况下,ProxySU安装代理工具的Latest版。
|
|
||||||
|
|
||||||
##### 支持的VPS系统为:
|
##### 支持的VPS系统为:
|
||||||
* CentOS 7/8
|
* CentOS 7/8
|
||||||
|
@ -62,14 +58,7 @@ ProxySU调用[SSH.NET](https://github.com/sshnet/SSH.NET)库登录远程主机
|
||||||
* RSA in OpenSSL PEM and ssh.com format
|
* RSA in OpenSSL PEM and ssh.com format
|
||||||
* DSA in OpenSSL PEM and ssh.com format
|
* DSA in OpenSSL PEM and ssh.com format
|
||||||
* ECDSA 256/384/521 in OpenSSL PEM format
|
* ECDSA 256/384/521 in OpenSSL PEM format
|
||||||
* ECDSA 256/384/521, ED25519 and RSA in OpenSSH key format
|
* ED25519 in OpenSSH key format
|
||||||
可以使用以下密码方法之一对私钥进行加密:
|
|
||||||
* DES-EDE3-CBC
|
|
||||||
* DES-EDE3-CFB
|
|
||||||
* DES-CBC
|
|
||||||
* AES-128-CBC
|
|
||||||
* AES-192-CBC
|
|
||||||
* AES-256-CBC
|
|
||||||
见官方说明:
|
见官方说明:
|
||||||
https://github.com/sshnet/SSH.NET#public-key-authentication
|
https://github.com/sshnet/SSH.NET#public-key-authentication
|
||||||
如果当前拥有的密钥格式不是以上几种,可以下载[puttygen](https://www.puttygen.com/)工具,将其转换成上面的格式。
|
如果当前拥有的密钥格式不是以上几种,可以下载[puttygen](https://www.puttygen.com/)工具,将其转换成上面的格式。
|
||||||
|
@ -90,9 +79,6 @@ Let's Encrypt证书申请频率的限制
|
||||||
同一IP地址,在短时间内过于频繁的申请证书,也会被限制,此时更换域名也无法申请成功,只能等待一段时间,或者更换Ip.
|
同一IP地址,在短时间内过于频繁的申请证书,也会被限制,此时更换域名也无法申请成功,只能等待一段时间,或者更换Ip.
|
||||||
(网友分享)
|
(网友分享)
|
||||||
|
|
||||||
##### 上传自有证书 #####
|
|
||||||
需要将crt和key文件打包成zip,在安装界面选择“上传自有证书”
|
|
||||||
|
|
||||||
##### 关于卸载功能
|
##### 关于卸载功能
|
||||||
有网友要求,可以卸载其他方法安装的,经过考虑,还是不这样做。1,容易引起争议。2,不容易卸载干净,在用ProxySU安装时可能还会出错。所以第一次使用ProxySU建议使用全新系统,如果以前安装过代理程序,请尽可能将系统重装一下,可以减少很多安装的错误和冲突。
|
有网友要求,可以卸载其他方法安装的,经过考虑,还是不这样做。1,容易引起争议。2,不容易卸载干净,在用ProxySU安装时可能还会出错。所以第一次使用ProxySU建议使用全新系统,如果以前安装过代理程序,请尽可能将系统重装一下,可以减少很多安装的错误和冲突。
|
||||||
|
|
||||||
|
@ -101,6 +87,8 @@ Let's Encrypt证书申请频率的限制
|
||||||
[(GPL-V3)](https://raw.githubusercontent.com/proxysu/windows/master/LICENSE)
|
[(GPL-V3)](https://raw.githubusercontent.com/proxysu/windows/master/LICENSE)
|
||||||
|
|
||||||
## 运行文件下载
|
## 运行文件下载
|
||||||
|
* Beta版(随代码更新,新添加功能可能有bug或不完善)
|
||||||
|
[下载](https://github.com/proxysu/windows/raw/master/ProxySU/bin/Beta/Beta.zip)
|
||||||
* 正式版(正式发布的版本,新功能完善后发布)
|
* 正式版(正式发布的版本,新功能完善后发布)
|
||||||
[下载](https://github.com/proxysu/windows/releases)
|
[下载](https://github.com/proxysu/windows/releases)
|
||||||
|
|
||||||
|
@ -118,11 +106,12 @@ Microsoft [.NET Framework 4.8](https://dotnet.microsoft.com/download/dotnet-fram
|
||||||
|
|
||||||
## 程序使用问题反馈
|
## 程序使用问题反馈
|
||||||
* Telegram群组 https://t.me/proxysuissues
|
* Telegram群组 https://t.me/proxysuissues
|
||||||
|
* Telegram频道 https://t.me/proxysu_channel
|
||||||
* 在线提问 https://github.com/proxysu/windows/issues
|
* 在线提问 https://github.com/proxysu/windows/issues
|
||||||
|
|
||||||
在使用遇到问题时,请先看一下[常见问题集锦](https://github.com/proxysu/windows/wiki/CommonError),如果还不能解决,可以到以上平台询问,个人精力有限,尽力解答。
|
在使用遇到问题时,请先看一下[常见问题集锦](https://github.com/proxysu/windows/wiki/CommonError),如果还不能解决,可以到以上平台询问,个人精力有限,尽力解答。
|
||||||
|
|
||||||
|
忙... 近期更新。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue