mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 22:36:20 +00:00
Fixed issue of adding a second set of "[]" to an IPv6 address already enclosed in "[]".
This commit is contained in:
parent
e9b392d1c0
commit
aa8618fc55
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
private static string GetIpv6(string address)
|
private static string GetIpv6(string address)
|
||||||
{
|
{
|
||||||
return Utils.IsIpv6(address) ? $"[{address}]" : address;
|
return Utils.IsIpv6(address) ? address.Contains("[") ? address : $"[{address}]" : 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