Improved share Uri

https://github.com/2dust/v2rayN/issues/5807
This commit is contained in:
2dust
2024-10-15 11:02:17 +08:00
parent fd7cf164ff
commit e96c9abd69
8 changed files with 22 additions and 49 deletions
+1 -7
View File
@@ -47,14 +47,8 @@
dicQuery.Add("encryption", Global.None);
}
GetStdTransport(item, Global.None, ref dicQuery);
string query = "?" + string.Join("&", dicQuery.Select(x => x.Key + "=" + x.Value).ToArray());
url = string.Format("{0}@{1}:{2}",
item.id,
GetIpv6(item.address),
item.port);
url = $"{Global.ProtocolShares[EConfigType.VLESS]}{url}{query}{remark}";
return url;
return ToUri(EConfigType.VLESS, item.address, item.port, item.id, dicQuery, remark);
}
}
}