xfuture 2.9.9 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xfuture",
3
- "version": "2.9.9",
3
+ "version": "3.0.2",
4
4
  "description": "electron vpn sdk",
5
5
  "main": "x.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "keywords": [
11
11
  "chatgpt"
12
12
  ],
13
- "author": "badwin",
13
+ "author": "xxcc",
14
14
  "license": "ISC",
15
15
 
16
16
  "dependencies": {
package/parser.js CHANGED
@@ -19,6 +19,9 @@ class xParser {
19
19
  else if (uri.startsWith("niuniu://")) {
20
20
  return this.parseNiuniu(uri);
21
21
  }
22
+ else if (uri.startsWith("ppx://")) {
23
+ return this.parsePPx(uri);
24
+ }
22
25
  return {};
23
26
  }
24
27
 
@@ -55,6 +58,25 @@ class xParser {
55
58
 
56
59
  }
57
60
 
61
+ parsePPx(urlString){
62
+ urlString = urlString.replace("ppx://", "http://");
63
+ const url = new URL(urlString);
64
+
65
+
66
+ console.log(url)
67
+
68
+ var hostname = url.hostname;
69
+ var port = url.port;
70
+
71
+ var base = {};
72
+ base.remark = "ppx";
73
+ base.address = hostname;
74
+ base.port = port * 1;
75
+
76
+ return base;
77
+
78
+ }
79
+
58
80
  parseSS(url){
59
81
  url = url.substring(5);
60
82
  if (url.includes("@")) {