pinokiod 1.0.10 → 1.0.11

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/package.json +1 -1
  2. package/server/index.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1761,7 +1761,9 @@ class Server {
1761
1761
  local_host = u.hostname
1762
1762
  console.log({ local_host, port })
1763
1763
  if (req.body.action === "start") {
1764
- const tunnel = await localtunnel({ local_host, port: parseInt(port) });
1764
+ //const tunnel = await localtunnel({ local_host, port: parseInt(port) });
1765
+ //const tunnel = await localtunnel({ local_host: "127.0.0.1", port: parseInt(port) });
1766
+ const tunnel = await localtunnel({ port: parseInt(port) });
1765
1767
  let url = req.body.url
1766
1768
  this.tunnels[url] = tunnel
1767
1769
  tunnel.on('error', (err) => {