jointhis.proxy 0.2.7 → 0.2.9

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.
package/README.md CHANGED
@@ -21,16 +21,17 @@ Usage
21
21
  $ jointhis.proxy
22
22
 
23
23
  Options
24
- --port Internal port to assign.
25
- --key Authentication key.
26
- --subdomain Jointhis.party subdomain to assign.
27
- --service Service to host, for example: minecraft -> mc
24
+ --tcp Internal TCP port.
25
+ --udp Internal UDP port.
26
+ --key Authentication key.
27
+ --subdomain Jointhis.party subdomain to assign.
28
+ --service Service to host, for example: minecraft -> mc
28
29
 
29
30
  Examples
30
- $ jointhis.proxy --key "3002348970847937423423" --subdomain "mycoolserver" --service "mc"
31
+ $ jointhis.proxy --key=3002348970847937423423 --subdomain=mycoolserver --tcp=25565 --udp=19132
31
32
 
32
- For interactive setup, just ru:
33
- $ jointhis.proxy
33
+ For interactive setup, just run:
34
+ $ jointhis.proxy
34
35
  ```
35
36
 
36
37
  Note to self, don't forget to `npm publish`
package/dist/cli.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- export declare const version = "0.2.5";
2
+ export declare const version = "0.2.9";
3
3
  export declare var rtun: any;
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import UI from './ui.js';
7
7
  import fs from 'node:fs';
8
8
  import { Spawn } from 'ink-spawn';
9
9
  import { exec } from 'node:child_process';
10
- export const version = `0.2.5`;
10
+ export const version = `0.2.9`;
11
11
  export var rtun;
12
12
  // Get backend executable
13
13
  if (process.platform == 'linux') {
@@ -24,7 +24,7 @@ else if (process.platform == 'win32') {
24
24
  console.log('Windows support is experimental.');
25
25
  fs.open('./rtun-windows-amd64.exe', 'r', (err, fd) => {
26
26
  if (err) {
27
- exec('curl -O https://github.com/snsinfu/reverse-tunnel/releases/download/v1.3.2/rtun-windows-amd64.exe');
27
+ exec('curl.exe -L -O https://github.com/snsinfu/reverse-tunnel/releases/download/v1.3.2/rtun-windows-amd64.exe');
28
28
  }
29
29
  });
30
30
  rtun = './rtun-windows-amd64.exe';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jointhis.proxy",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "license": "MIT",
5
5
  "bin": "dist/cli.js",
6
6
  "type": "module",