mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-11 13:11:02 +00:00
修复潜在的可能出现域名检测错误 #71
This commit is contained in:
parent
e4971f286f
commit
c81e3ae52b
3 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:ProxySU"
|
xmlns:local="clr-namespace:ProxySU"
|
||||||
mc:Ignorable="d"
|
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://yq.aliyun.com/articles/331878
|
||||||
https://docs.microsoft.co/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
|
https://docs.microsoft.co/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
|
|
|
@ -9941,7 +9941,8 @@ namespace ProxySU
|
||||||
{
|
{
|
||||||
string nativeIp = ipv4;
|
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);
|
currentShellCommandResult = MainWindowsShowCmd(client, sshShellCommand);
|
||||||
|
|
||||||
string resultTestDomainCmd = currentShellCommandResult.TrimEnd('\r', '\n');
|
string resultTestDomainCmd = currentShellCommandResult.TrimEnd('\r', '\n');
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue