Internationalized code comments

This commit is contained in:
2dust
2025-04-09 16:48:38 +08:00
parent 5adae2dd2a
commit 321ec30f39
11 changed files with 336 additions and 124 deletions

View File

@@ -8,10 +8,13 @@ public class BaseFmt
{
if (Utils.IsIpv6(address))
{
// 检查地址是否已经被方括号包围,如果没有,则添加方括号
// Check if the address is already surrounded by square brackets, if not, add square brackets
return address.StartsWith('[') && address.EndsWith(']') ? address : $"[{address}]";
}
return address; // 如果不是IPv6地址直接返回原地址
else
{
return address;
}
}
protected static int GetStdTransport(ProfileItem item, string? securityDef, ref Dictionary<string, string> dicQuery)