示例#1
0
 public Tuple <JObject, JToken> Decode(string shareLink)
 {
     try
     {
         var vc = ParseVlessUrl(shareLink);
         if (vc != null)
         {
             var vee = vc.ToVeeShareLink();
             return(veeDecoder.Decode(vee));
         }
     }
     catch { }
     return(null);
 }
示例#2
0
        public Tuple <JObject, JToken> Decode(string shareLink)
        {
            /*
             * trojan://password@remote_host:remote_port
             * in which the password is url-encoded in case it contains illegal characters.
             */

            try
            {
                var vc = ParseTrojanUrl(shareLink);
                if (vc != null)
                {
                    var vee = vc.ToVeeShareLink();
                    return(veeDecoder.Decode(vee));
                }
            }
            catch { }
            return(null);
        }