Skip to content

Commit

Permalink
ip
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed Apr 30, 2019
1 parent f230ab4 commit ae74d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AuroraGUI/Tools/IpTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static string GetLocIp()
{
MyTools.BackgroundLog("Try Connect:" + e);
return MessageBox.Show(
$"Error: 尝试连接远端 DNS over HTTPS 服务器发生错误{Environment.NewLine}点击“确定”以重试连接,点击“取消”放弃连接使用预设地址。{Environment.NewLine}Original error: "
$"Error: 尝试连接远端 DNS over HTTPS 服务器发生错误(DoH-Server){Environment.NewLine}点击“确定”以重试连接,点击“取消”放弃连接使用预设地址。{Environment.NewLine}Original error: "
+ e.Message, @"错误", MessageBoxButton.OKCancel) == MessageBoxResult.OK
? GetLocIp() : "192.168.0.1";
}
Expand All @@ -54,7 +54,7 @@ public static string GetIntIp()
catch (Exception e)
{
MyTools.BackgroundLog("Try Connect:" + e);
return MessageBox.Show($"Error: 尝试获取公网IP地址失败{Environment.NewLine}点击“确定”以重试连接,点击“取消”放弃连接使用预设地址。{Environment.NewLine}Original error: "
return MessageBox.Show($"Error: 尝试获取公网IP地址失败(WhatMyIP-API){Environment.NewLine}点击“确定”以重试连接,点击“取消”放弃连接使用预设地址。{Environment.NewLine}Original error: "
+ e.Message, @"错误", MessageBoxButton.OKCancel) == MessageBoxResult.OK
? GetIntIp() : IPAddress.Any.ToString();
}
Expand Down

0 comments on commit ae74d04

Please sign in to comment.