@rpcbase/cli 0.40.0 → 0.42.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/cli",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "license": "SSPL-1.0",
5
5
  "bin": {
6
6
  "rb": "./bin.js"
@@ -31,9 +31,9 @@ const start = (run_configs) => {
31
31
 
32
32
  const {server_port, wss_port} = get_port(run_configs)
33
33
  try {
34
- execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
35
- execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port}`, {stdio: "inherit"})
36
- execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
34
+ execSync(`${TAILSCALE_PATH} serve --bg --set-path /wss --https=${wss_port} http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
35
+ execSync(`${TAILSCALE_PATH} serve --bg --set-path / --https=443 http://127.0.0.1:${server_port}`, {stdio: "inherit"})
36
+ // execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
37
37
  } catch (err) {
38
38
  console.log("error starting tailscale, is the tailscale app running ?")
39
39
  }
@@ -45,9 +45,9 @@ const stop = (run_configs) => {
45
45
 
46
46
  const {server_port, wss_port} = get_port(run_configs)
47
47
  try {
48
- execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port} off`, {stdio: "inherit"})
49
- execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port} off`, {stdio: "inherit"})
50
- execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
48
+ execSync(`${TAILSCALE_PATH} serve --https=${wss_port} off`, {stdio: "inherit"})
49
+ execSync(`${TAILSCALE_PATH} serve --https=443 off`, {stdio: "inherit"})
50
+ // execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
51
51
  } catch (err) {
52
52
  // console.log("TAILSCALE ERR", err)
53
53
  console.log("error stopping tailscale, it probably wasn't initally running. you can probably ignore it")
@@ -1,3 +0,0 @@
1
- DOMAIN=localhost3
2
- GHEllo=
3
- # yo