diff --git a/ProxySU/MainWindow.xaml b/ProxySU/MainWindow.xaml index 46babc6..c113bb2 100644 --- a/ProxySU/MainWindow.xaml +++ b/ProxySU/MainWindow.xaml @@ -385,7 +385,7 @@ - + diff --git a/ProxySU/MainWindow.xaml.cs b/ProxySU/MainWindow.xaml.cs index 0f3f398..246520f 100644 --- a/ProxySU/MainWindow.xaml.cs +++ b/ProxySU/MainWindow.xaml.cs @@ -470,7 +470,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0")==false) + if (testRootAuthority.Equals("0\n")==false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -1236,7 +1236,7 @@ namespace ProxySU //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -1413,7 +1413,7 @@ namespace ProxySU //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -2031,7 +2031,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -2519,7 +2519,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -2722,7 +2722,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -2907,7 +2907,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); @@ -3168,7 +3168,7 @@ namespace ProxySU } //检测是否运行在root权限下 string testRootAuthority = client.RunCommand(@"id -u").Result; - if (testRootAuthority.Equals("0") == false) + if (testRootAuthority.Equals("0\n") == false) { MessageBox.Show("请使用具有root权限的账户登录主机!!"); client.Disconnect(); diff --git a/ProxySU/Properties/AssemblyInfo.cs b/ProxySU/Properties/AssemblyInfo.cs index d30cb11..33f87d8 100644 --- a/ProxySU/Properties/AssemblyInfo.cs +++ b/ProxySU/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 方法是按如下所示使用“*”: : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.6.2.0")] -[assembly: AssemblyFileVersion("1.6.2.0")] +[assembly: AssemblyVersion("1.6.3.0")] +[assembly: AssemblyFileVersion("1.6.3.0")] diff --git a/ProxySU/bin/Beta/Beta.zip b/ProxySU/bin/Beta/Beta.zip index 46b9dd2..8364262 100644 Binary files a/ProxySU/bin/Beta/Beta.zip and b/ProxySU/bin/Beta/Beta.zip differ