@eooce/idx 1.0.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/index.js +22 -31
  3. package/package.json +3 -12
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Your Name
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 eooce
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.js CHANGED
@@ -423,18 +423,6 @@ eQ6OFb9LbLYL9f+sAiAffoMbi4y/0YUSlTtz7as9S8/lciBF5VCUoVIKS+vX2g==
423
423
  "level": "error",
424
424
  "timestamp": true
425
425
  },
426
- "dns": {
427
- "servers": [
428
- {
429
- "address": "8.8.8.8",
430
- "address_resolver": "local"
431
- },
432
- {
433
- "tag": "local",
434
- "address": "local"
435
- }
436
- ]
437
- },
438
426
  "inbounds": [
439
427
  {
440
428
  "tag": "vmess-ws-in",
@@ -453,28 +441,31 @@ eQ6OFb9LbLYL9f+sAiAffoMbi4y/0YUSlTtz7as9S8/lciBF5VCUoVIKS+vX2g==
453
441
  }
454
442
  }
455
443
  ],
444
+ "endpoints": [
445
+ {
446
+ "type": "wireguard",
447
+ "tag": "wireguard-out",
448
+ "mtu": 1280,
449
+ "address": [
450
+ "172.16.0.2/32",
451
+ "2606:4700:110:8dfe:d141:69bb:6b80:925/128"
452
+ ],
453
+ "private_key": "YFYOAdbw1bKTHlNNi+aEjBM3BO7unuFC5rOkMRAz9XY=",
454
+ "peers": [
455
+ {
456
+ "address": "engage.cloudflareclient.com",
457
+ "port": 2408,
458
+ "public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
459
+ "allowed_ips": ["0.0.0.0/0", "::/0"],
460
+ "reserved": [78, 135, 76]
461
+ }
462
+ ]
463
+ }
464
+ ],
456
465
  "outbounds": [
457
466
  {
458
467
  "type": "direct",
459
468
  "tag": "direct"
460
- },
461
- {
462
- "type": "block",
463
- "tag": "block"
464
- },
465
- {
466
- "type": "wireguard",
467
- "tag": "wireguard-out",
468
- "server": "engage.cloudflareclient.com",
469
- "server_port": 2408,
470
- "local_address": [
471
- "172.16.0.2/32",
472
- "2606:4700:110:851f:4da3:4e2c:cdbf:2ecf/128"
473
- ],
474
- "private_key": "eAx8o6MJrH4KE7ivPFFCa4qvYw5nJsYHCBQXPApQX1A=",
475
- "peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
476
- "reserved": [82, 90, 51],
477
- "mtu": 1420
478
469
  }
479
470
  ],
480
471
  "route": {
@@ -875,7 +866,7 @@ async function extractDomains() {
875
866
 
876
867
  return new Promise((resolve) => {
877
868
  setTimeout(() => {
878
- const vmessNode = `vmess://${Buffer.from(JSON.stringify({ v: '2', ps: `${nodeName}`, add: CFIP, port: CFPORT, id: UUID, aid: '0', scy: 'none', net: 'ws', type: 'none', host: argoDomain, path: '/vmess-argo?ed=2560', tls: 'tls', sni: argoDomain, alpn: '', fp: 'firefox'})).toString('base64')}`;
869
+ const vmessNode = `vmess://${Buffer.from(JSON.stringify({ v: '2', ps: `${nodeName}`, add: CFIP, port: CFPORT, id: UUID, aid: '0', scy: 'auto', net: 'ws', type: 'none', host: argoDomain, path: '/vmess-argo?ed=2560', tls: 'tls', sni: argoDomain, alpn: '', fp: 'firefox'})).toString('base64')}`;
879
870
 
880
871
  let subTxt = vmessNode; // 始终生成vmess节点
881
872
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eooce/idx",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "@eooce/idx",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -13,18 +13,9 @@
13
13
  "tuic",
14
14
  "reality",
15
15
  "argo",
16
- "tunnel",
17
- "nezha"
16
+ "tunnel"
18
17
  ],
19
18
  "author": "eooce",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/eooce/Sing-box.git"
23
- },
24
- "bugs": {
25
- "url": "https://github.com/eooce/Sing-box/issues"
26
- },
27
- "homepage": "https://github.com/eooce/Sing-box#readme",
28
19
  "license": "MIT",
29
20
  "private": false,
30
21
  "scripts": {
@@ -48,4 +39,4 @@
48
39
  "publishConfig": {
49
40
  "access": "public"
50
41
  }
51
- }
42
+ }