mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-02-18 07:23:17 +03:00
修复潜在的可能出现域名检测错误 #71
This commit is contained in:
parent
e4971f286f
commit
c81e3ae52b
@ -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>
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user