Skip to content

Commit 80fd2a4

Browse files
committed
修复设置ufw防墙卡住的Bug
1 parent 5e8bf57 commit 80fd2a4

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

ProxySU/MainWindow.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
<RowDefinition></RowDefinition>
385385
<RowDefinition></RowDefinition>
386386
</Grid.RowDefinitions>
387-
<TextBlock Text="程序版本:1.6.0" Grid.Column="0" Grid.Row="0"></TextBlock>
387+
<TextBlock Text="程序版本:1.6.1" Grid.Column="0" Grid.Row="0"></TextBlock>
388388

389389
</Grid>
390390

ProxySU/MainWindow.xaml.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,13 @@ private void StartSetUpV2ray(ConnectionInfo connectionInfo,TextBlock textBlockNa
810810
{
811811
client.RunCommand("ufw allow 80");
812812
client.RunCommand("ufw allow 443");
813-
client.RunCommand("ufw reset");
813+
client.RunCommand("yes | ufw reset");
814814
}
815815
else
816816
{
817817
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
818818
client.RunCommand($"ufw allow {openFireWallPort}/udp");
819-
client.RunCommand("ufw reset");
819+
client.RunCommand("yes | ufw reset");
820820
}
821821
}
822822

@@ -1668,13 +1668,13 @@ private void StartSetUpTrojan(ConnectionInfo connectionInfo, TextBlock textBlock
16681668
{
16691669
client.RunCommand("ufw allow 80");
16701670
client.RunCommand("ufw allow 443");
1671-
client.RunCommand("ufw reset");
1671+
client.RunCommand("yes | ufw reset");
16721672
}
16731673
else
16741674
{
16751675
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
16761676
client.RunCommand($"ufw allow {openFireWallPort}/udp");
1677-
client.RunCommand("ufw reset");
1677+
client.RunCommand("yes | ufw reset");
16781678
}
16791679
}
16801680

@@ -2204,13 +2204,13 @@ private void StartSetUpNaive(ConnectionInfo connectionInfo, TextBlock textBlockN
22042204
{
22052205
client.RunCommand("ufw allow 80");
22062206
client.RunCommand("ufw allow 443");
2207-
client.RunCommand("ufw reset");
2207+
client.RunCommand("yes | ufw reset");
22082208
}
22092209
else
22102210
{
22112211
client.RunCommand($"ufw allow {openFireWallPort}/tcp");
22122212
client.RunCommand($"ufw allow {openFireWallPort}/udp");
2213-
client.RunCommand("ufw reset");
2213+
client.RunCommand("yes | ufw reset");
22142214
}
22152215
}
22162216

@@ -3116,7 +3116,7 @@ private void StartSetUp3in1(ConnectionInfo connectionInfo, TextBlock textBlockNa
31163116

31173117
client.RunCommand("ufw allow 80");
31183118
client.RunCommand("ufw allow 443");
3119-
client.RunCommand("ufw reset");
3119+
client.RunCommand("yes | ufw reset");
31203120
}
31213121

31223122
currentStatus = "符合安装要求,V2ray安装中......";

ProxySU/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
5252
// 方法是按如下所示使用“*”: :
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.6.0.0")]
55-
[assembly: AssemblyFileVersion("1.6.0.0")]
54+
[assembly: AssemblyVersion("1.6.1.0")]
55+
[assembly: AssemblyFileVersion("1.6.1.0")]

ProxySU/bin/Beta/Beta.zip

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)