ssh_tunnel_proxy 1.1.2 → 1.1.3

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 (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,6 +7,24 @@ the tunnel. A list of port forwards is provided to the connect_api function and
7
7
 
8
8
  Example code for electron_js:
9
9
  ```js
10
+
11
+ // options for connect_ssh_sync, invoked in electron render process
12
+ var opts = {
13
+ "username": "<username>",
14
+ "password": "",
15
+ "host": "",
16
+ "port": "",
17
+ "proxy_ports": [
18
+ "8280:127.0.0.1:80",
19
+ "9000:127.0.0.1:9000",
20
+ "8122:192.168.2.1:22"
21
+ ],
22
+ "service_name": "zmNinja",
23
+ "server_name": "server",
24
+ "ngrok_api": "<ngrok_api_key>"
25
+ };
26
+
27
+ // electron main function
10
28
  async function init_sshTunnelProxy(win) {
11
29
 
12
30
  const SSHTunnelProxy = require('ssh_tunnel_proxy');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh_tunnel_proxy",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "obtain ngrok host port from api and establish a ssh connection",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {