pull/4802/head
2dust 9 months ago
parent 315b51e7ca
commit 028c9ea0b5

@ -368,7 +368,7 @@ namespace v2rayN
try
{
Uri uri = new(url);
if (uri.Host == uri.IdnHost)
if (uri.Host == uri.IdnHost || uri.Host == $"[{uri.IdnHost}]")
{
return url;
}

@ -1466,7 +1466,7 @@ namespace v2rayN.ViewModels
_noticeHandler?.SendMessage(msg);
if (success)
{
CloseV2ray();
CloseCore();
string fileName = Utile.GetTempPath(Utile.GetDownloadFileName(msg));
string toPath = Utile.GetBinPath("", type.ToString());
@ -1495,13 +1495,13 @@ namespace v2rayN.ViewModels
#endregion CheckUpdate
#region v2ray job
#region core job
public void Reload()
{
BlReloadEnabled = false;
LoadV2ray().ContinueWith(task =>
LoadCore().ContinueWith(task =>
{
TestServerAvailability();
@ -1512,7 +1512,7 @@ namespace v2rayN.ViewModels
});
}
private async Task LoadV2ray()
private async Task LoadCore()
{
await Task.Run(() =>
{
@ -1524,7 +1524,7 @@ namespace v2rayN.ViewModels
});
}
private void CloseV2ray()
private void CloseCore()
{
ConfigHandler.SaveConfig(_config, false);
@ -1533,7 +1533,7 @@ namespace v2rayN.ViewModels
_coreHandler.CoreStop();
}
#endregion v2ray job
#endregion core job
#region System proxy and Routings

Loading…
Cancel
Save