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.
- package/README.md +18 -0
- 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');
|