Skip to content

Commit

Permalink
优化删除Nat64网关
Browse files Browse the repository at this point in the history
  • Loading branch information
proxysu committed Nov 16, 2020
1 parent 05c58d3 commit 1823d8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ProxySU/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProxySU"
mc:Ignorable="d"
Title="ProxySU - v2.4.23 Beta2" Height="675" Width="650">
Title="ProxySU - v2.4.23 Beta3" Height="675" Width="650">
<!--以下样式参考自:https://yq.aliyun.com/articles/331878
https://docs.microsoft.co/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
<Window.Resources>
Expand Down
8 changes: 4 additions & 4 deletions ProxySU/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7455,7 +7455,7 @@ private bool OnlyIpv6HostDetect(SshClient client)
}
else
{
FunctionResultErr();
//FunctionResultErr();
client.Disconnect();
//****未检测到有效的IP地址......***
currentStatus = Application.Current.FindResource("DisplayInstallInfo_NoIpDetect").ToString();
Expand Down Expand Up @@ -7523,7 +7523,7 @@ private bool SetUpNat64(SshClient client,bool set)
MainWindowsShowInfo(currentStatus);
sshShellCommand = @"rm /etc/resolv.conf";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
sshShellCommand = @"mv /etc/resolv.conf.bak /etc/resolv.conf";
sshShellCommand = @"ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
}

Expand Down Expand Up @@ -8646,8 +8646,8 @@ private bool SetCaddyfile(SshClient client,string upLoadPath)
sshShellCommand = $"sed -i 's/##path##/\\{ReceiveConfigurationParameters[6]}/' {upLoadPath}";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);

//设置伪装网站
if (String.IsNullOrEmpty(ReceiveConfigurationParameters[7]) == false)
//设置伪装网站/纯ipv6主机暂不设置
if (String.IsNullOrEmpty(ReceiveConfigurationParameters[7]) == false && onlyIpv6 == false)
{
sshShellCommand = $"sed -i 's/##reverse_Proxy1##/reverse_proxy http:\\/\\/{ReceiveConfigurationParameters[7]} {{/ ' {upLoadPath}";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
Expand Down
Binary file modified ProxySU/bin/Beta/Beta.zip
Binary file not shown.

0 comments on commit 1823d8b

Please sign in to comment.