mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-05 18:29:45 +05:00
Bug fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user