@@ -810,13 +810,13 @@ private void StartSetUpV2ray(ConnectionInfo connectionInfo,TextBlock textBlockNa
810
810
{
811
811
client . RunCommand ( "ufw allow 80" ) ;
812
812
client . RunCommand ( "ufw allow 443" ) ;
813
- client . RunCommand ( "ufw reset" ) ;
813
+ client . RunCommand ( "yes | ufw reset" ) ;
814
814
}
815
815
else
816
816
{
817
817
client . RunCommand ( $ "ufw allow { openFireWallPort } /tcp") ;
818
818
client . RunCommand ( $ "ufw allow { openFireWallPort } /udp") ;
819
- client . RunCommand ( "ufw reset" ) ;
819
+ client . RunCommand ( "yes | ufw reset" ) ;
820
820
}
821
821
}
822
822
@@ -1668,13 +1668,13 @@ private void StartSetUpTrojan(ConnectionInfo connectionInfo, TextBlock textBlock
1668
1668
{
1669
1669
client . RunCommand ( "ufw allow 80" ) ;
1670
1670
client . RunCommand ( "ufw allow 443" ) ;
1671
- client . RunCommand ( "ufw reset" ) ;
1671
+ client . RunCommand ( "yes | ufw reset" ) ;
1672
1672
}
1673
1673
else
1674
1674
{
1675
1675
client . RunCommand ( $ "ufw allow { openFireWallPort } /tcp") ;
1676
1676
client . RunCommand ( $ "ufw allow { openFireWallPort } /udp") ;
1677
- client . RunCommand ( "ufw reset" ) ;
1677
+ client . RunCommand ( "yes | ufw reset" ) ;
1678
1678
}
1679
1679
}
1680
1680
@@ -2204,13 +2204,13 @@ private void StartSetUpNaive(ConnectionInfo connectionInfo, TextBlock textBlockN
2204
2204
{
2205
2205
client . RunCommand ( "ufw allow 80" ) ;
2206
2206
client . RunCommand ( "ufw allow 443" ) ;
2207
- client . RunCommand ( "ufw reset" ) ;
2207
+ client . RunCommand ( "yes | ufw reset" ) ;
2208
2208
}
2209
2209
else
2210
2210
{
2211
2211
client . RunCommand ( $ "ufw allow { openFireWallPort } /tcp") ;
2212
2212
client . RunCommand ( $ "ufw allow { openFireWallPort } /udp") ;
2213
- client . RunCommand ( "ufw reset" ) ;
2213
+ client . RunCommand ( "yes | ufw reset" ) ;
2214
2214
}
2215
2215
}
2216
2216
@@ -3116,7 +3116,7 @@ private void StartSetUp3in1(ConnectionInfo connectionInfo, TextBlock textBlockNa
3116
3116
3117
3117
client . RunCommand ( "ufw allow 80" ) ;
3118
3118
client . RunCommand ( "ufw allow 443" ) ;
3119
- client . RunCommand ( "ufw reset" ) ;
3119
+ client . RunCommand ( "yes | ufw reset" ) ;
3120
3120
}
3121
3121
3122
3122
currentStatus = "符合安装要求,V2ray安装中......" ;
0 commit comments