Skip to content

Commit c81e3ae

Browse files
committed
修复潜在的可能出现域名检测错误 #71
1 parent e4971f2 commit c81e3ae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ProxySU/MainWindow.xaml

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

ProxySU/MainWindow.xaml.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9941,7 +9941,8 @@ private bool DomainResolutionCurrentIPDetect(SshClient client)
99419941
{
99429942
string nativeIp = ipv4;
99439943

9944-
sshShellCommand = "ping " + ReceiveConfigurationParameters[4] + " -c1 | grep -oE -m1 \"([0-9]{1,3}\\.){3}[0-9]{1,3}\"";
9944+
//sshShellCommand = "ping " + ReceiveConfigurationParameters[4] + " -c1 | grep -oE -m1 \"([0-9]{1,3}\\.){3}[0-9]{1,3}\"";
9945+
sshShellCommand = $"dig @resolver1.opendns.com A {ReceiveConfigurationParameters[4]} +short -4";
99459946
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
99469947

99479948
string resultTestDomainCmd = currentShellCommandResult.TrimEnd('\r', '\n');

ProxySU/bin/Beta/Beta.zip

-42 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)