diff --git a/v2rayN/v2rayN/Handler/ShareHandler.cs b/v2rayN/v2rayN/Handler/ShareHandler.cs index a647b5bb..8c387028 100644 --- a/v2rayN/v2rayN/Handler/ShareHandler.cs +++ b/v2rayN/v2rayN/Handler/ShareHandler.cs @@ -264,7 +264,7 @@ namespace v2rayN.Handler 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 dicQuery)