1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-02-18 07:23:17 +03:00

修复潜在的可能出现域名检测错误 #71

This commit is contained in:
ProxySU 2020-12-03 10:21:17 +08:00
parent e4971f286f
commit c81e3ae52b
3 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProxySU"
mc:Ignorable="d"
Title="ProxySU - v2.5.3 Beta1" Height="675" Width="660">
Title="ProxySU - v2.5.3 Beta2" Height="675" Width="660">
<!--以下样式参考自https://yq.aliyun.com/articles/331878
https://docs.microsoft.co/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
<Window.Resources>

View File

@ -9941,7 +9941,8 @@ namespace ProxySU
{
string nativeIp = ipv4;
sshShellCommand = "ping " + ReceiveConfigurationParameters[4] + " -c1 | grep -oE -m1 \"([0-9]{1,3}\\.){3}[0-9]{1,3}\"";
//sshShellCommand = "ping " + ReceiveConfigurationParameters[4] + " -c1 | grep -oE -m1 \"([0-9]{1,3}\\.){3}[0-9]{1,3}\"";
sshShellCommand = $"dig @resolver1.opendns.com A {ReceiveConfigurationParameters[4]} +short -4";
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
string resultTestDomainCmd = currentShellCommandResult.TrimEnd('\r', '\n');

Binary file not shown.