Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jan 20, 2024
1 parent 8a3eb41 commit d7cb88f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2rayN/v2rayN/Handler/ShareHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ private static ProfileItem ResolveTrojan(string result)
item.address = url.IdnHost;
item.port = url.Port;
item.remarks = url.GetComponents(UriComponents.Fragment, UriFormat.Unescaped);
item.id = url.UserInfo;
item.id = Utils.UrlDecode(url.UserInfo);

var query = Utils.ParseQueryString(url.Query);
ResolveStdTransport(query, ref item);
Expand All @@ -857,7 +857,7 @@ private static ProfileItem ResolveStdVLESS(string result)
item.address = url.IdnHost;
item.port = url.Port;
item.remarks = url.GetComponents(UriComponents.Fragment, UriFormat.Unescaped);
item.id = url.UserInfo;
item.id = Utils.UrlDecode(url.UserInfo);

var query = Utils.ParseQueryString(url.Query);
item.security = query["encryption"] ?? "none";
Expand All @@ -879,7 +879,7 @@ private static ProfileItem ResolveHysteria2(string result)
item.address = url.IdnHost;
item.port = url.Port;
item.remarks = url.GetComponents(UriComponents.Fragment, UriFormat.Unescaped);
item.id = url.UserInfo;
item.id = Utils.UrlDecode(url.UserInfo);

var query = Utils.ParseQueryString(url.Query);
ResolveStdTransport(query, ref item);
Expand Down

0 comments on commit d7cb88f

Please sign in to comment.