mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-14 00:15:01 +03:00
Code clean
This commit is contained in:
@@ -424,7 +424,7 @@ public class Utils
|
||||
// Handle IPv6 addresses, e.g., "[2001:db8::1]:443"
|
||||
if (authority.StartsWith("[") && authority.Contains("]"))
|
||||
{
|
||||
int closingBracketIndex = authority.LastIndexOf(']');
|
||||
var closingBracketIndex = authority.LastIndexOf(']');
|
||||
if (closingBracketIndex < authority.Length - 1 && authority[closingBracketIndex + 1] == ':')
|
||||
{
|
||||
// Port exists
|
||||
|
||||
Reference in New Issue
Block a user