@rpcbase/cli 0.28.0 → 0.29.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
|
@@ -26,19 +26,25 @@ const get_port = (run_configs) => {
|
|
|
26
26
|
|
|
27
27
|
const start = (run_configs) => {
|
|
28
28
|
const {server_port, wss_port} = get_port(run_configs)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
try {
|
|
30
|
+
execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port}`, {stdio: "inherit"})
|
|
31
|
+
execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port}`, {stdio: "inherit"})
|
|
32
|
+
execSync(`${TAILSCALE_PATH} funnel 443 on`, {stdio: "inherit"})
|
|
33
|
+
} catch (err) {
|
|
34
|
+
console.log("TAILSCALE ERR", err)
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
|
|
36
39
|
const stop = (run_configs) => {
|
|
37
40
|
const {server_port, wss_port} = get_port(run_configs)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
try {
|
|
42
|
+
execSync(`${TAILSCALE_PATH} serve https:443 /wss http://127.0.0.1:${wss_port} off`, {stdio: "inherit"})
|
|
43
|
+
execSync(`${TAILSCALE_PATH} serve https:443 / http://127.0.0.1:${server_port} off`, {stdio: "inherit"})
|
|
44
|
+
execSync(`${TAILSCALE_PATH} funnel 443 off`, {stdio: "inherit"})
|
|
45
|
+
} catch (err) {
|
|
46
|
+
console.log("TAILSCALE ERR", err)
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
module.exports = {start, stop}
|