mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-01 20:58:50 +00:00
Bug fix
This commit is contained in:
parent
398dbbd2e5
commit
8d21f9b900
1 changed files with 15 additions and 1 deletions
|
@ -264,7 +264,21 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
private static string GetIpv6(string address)
|
private static string GetIpv6(string address)
|
||||||
{
|
{
|
||||||
return Utils.IsIpv6(address) ? $"[{address}]" : address;
|
if (Utils.IsIpv6(address))
|
||||||
|
{
|
||||||
|
if (address.StartsWith('[') && address.EndsWith(']'))
|
||||||
|
{
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $"[{address}]";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return address;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int GetStdTransport(ProfileItem item, string? securityDef, ref Dictionary<string, string> dicQuery)
|
private static int GetStdTransport(ProfileItem item, string? securityDef, ref Dictionary<string, string> dicQuery)
|
||||||
|
|
Loading…
Reference in a new issue