Skip to content

Commit

Permalink
v2.4.23
Browse files Browse the repository at this point in the history
  • Loading branch information
proxysu committed Nov 16, 2020
1 parent 72f7198 commit 19bf6a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 38 deletions.
49 changes: 11 additions & 38 deletions ProxySU/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ private void Button_Login_Click(object sender, RoutedEventArgs e)
private void StartSetUpV2ray(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -1279,45 +1280,7 @@ private void StartSetUpV2ray(ConnectionInfo connectionInfo)

#region V2Ray专用调用函数

//下载安装脚本安装V2Ray 37--40
//functionResult = V2RayInstallScript(client);
//if (functionResult == false) { FunctionResultErr(); client.Disconnect(); return; }
//private bool V2RayInstallScript(SshClient client)
//{
// //****** "系统环境检测完毕,符合安装要求,开始布署......" ******17
// currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstalling").ToString();
// MainWindowsShowInfo(currentStatus);

// //下载官方安装脚本安装
// //****** "正在安装V2Ray......" ******19
// SetUpProgressBarProcessing(37);
// currentStatus = Application.Current.FindResource("DisplayInstallInfo_StartInstallSoft").ToString() + "V2Ray......";
// MainWindowsShowInfo(currentStatus);

// sshShellCommand = $"curl -o /tmp/go.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh";
// currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

// functionResult = FileCheckExists(client, @"/tmp/go.sh");
// if (functionResult == true)
// {
// sshShellCommand = @"yes | bash /tmp/go.sh -f";
// currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

// sshShellCommand = @"rm -f /tmp/go.sh";
// currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
// }
// else
// {
// //***安装脚本下载失败!***
// currentStatus = Application.Current.FindResource("DisplayInstallInfo_DownloadScriptFailed").ToString();
// MainWindowsShowInfo(currentStatus);
// return false;
// }

// SetUpProgressBarProcessing(40);
// return true;
//}

//生成V2Ray服务端配置 44--46
//functionResult = GenerateServerConfiguration(client);
//if (functionResult == false) { FunctionResultErr(); client.Disconnect(); return; }
Expand Down Expand Up @@ -2113,6 +2076,7 @@ private void ButtonUpdateV2ray_Click(object sender, RoutedEventArgs e)
private void UpdateV2ray(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -2414,6 +2378,7 @@ private void ButtonTrojanGoSetUp_Click(object sender, RoutedEventArgs e)
private void StartSetUpTrojanGo(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -2778,6 +2743,7 @@ private void ButtonUpdateTrojanGo_Click(object sender, RoutedEventArgs e)
private void UpdateTojanGo(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -3048,6 +3014,7 @@ private void ButtonTrojanSetUp_Click(object sender, RoutedEventArgs e)
private void StartSetUpTrojan(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -3333,6 +3300,7 @@ private void ButtonUpdateTrojan_Click(object sender, RoutedEventArgs e)
private void UpdateTojan(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -3624,6 +3592,7 @@ private void ButtonNavieSetUp_Click(object sender, RoutedEventArgs e)
private void StartSetUpNaive(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -4023,6 +3992,7 @@ private void ButtonSSRSetUp_Click(object sender, RoutedEventArgs e)
private void StartSetUpSSR(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -4405,6 +4375,7 @@ private void Button_LoginSS_Click(object sender, RoutedEventArgs e)
private void StartSetUpSS(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -4982,6 +4953,7 @@ private void ButtonMtgSetUp_Click(object sender, RoutedEventArgs e)
private void StartSetUpMtg(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down Expand Up @@ -5484,6 +5456,7 @@ private void ButtonTestAndEnableBBR_Click(object sender, RoutedEventArgs e)
private void StartTestAndEnableBBR(ConnectionInfo connectionInfo)
{
functionResult = true;
onlyIpv6 = false;
getApt = false;
getDnf = false;
getYum = false;
Expand Down
Binary file modified ProxySU/bin/Beta/Beta.zip
Binary file not shown.

0 comments on commit 19bf6a0

Please sign in to comment.