1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-02-16 14:43:14 +03:00

修复设置ufw防墙卡住的Bug

This commit is contained in:
ProxySU 2020-05-27 20:53:37 +08:00
parent 5e8bf57da0
commit 80fd2a431d
4 changed files with 10 additions and 10 deletions

View File

@ -384,7 +384,7 @@
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Text="程序版本1.6.0" Grid.Column="0" Grid.Row="0"></TextBlock>
<TextBlock Text="程序版本1.6.1" Grid.Column="0" Grid.Row="0"></TextBlock>
</Grid>

View File

@ -810,13 +810,13 @@ namespace ProxySU
{
client.RunCommand("ufw allow 80");
client.RunCommand("ufw allow 443");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
else
{
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
client.RunCommand($"ufw allow {openFireWallPort}/udp");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
}
@ -1668,13 +1668,13 @@ namespace ProxySU
{
client.RunCommand("ufw allow 80");
client.RunCommand("ufw allow 443");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
else
{
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
client.RunCommand($"ufw allow {openFireWallPort}/udp");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
}
@ -2204,13 +2204,13 @@ namespace ProxySU
{
client.RunCommand("ufw allow 80");
client.RunCommand("ufw allow 443");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
else
{
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
client.RunCommand($"ufw allow {openFireWallPort}/udp");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
}
@ -3116,7 +3116,7 @@ namespace ProxySU
client.RunCommand("ufw allow 80");
client.RunCommand("ufw allow 443");
client.RunCommand("ufw reset");
client.RunCommand("yes | ufw reset");
}
currentStatus = "符合安装要求,V2ray安装中......";

View File

@ -51,5 +51,5 @@ using System.Windows;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
[assembly: AssemblyVersion("1.6.1.0")]
[assembly: AssemblyFileVersion("1.6.1.0")]

Binary file not shown.