diff --git a/README.md b/README.md index f2ca2b81..15388634 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ yarn install 3) Run with `yarn start` 4) Connect with Shockwallet *(Provide your nodes IP manually or scan QR from ShockWizard)* -*Optionally, add the `--tunnel` flag to create an ssh connection through a tunnel.rip webserver for zero-configuration networking. All communication between the api and wallet is end-to-end encrypted and your privacy is protected.* +*Optionally, add the `-t` flag to route through a tunnel.rip webserver for zero-configuration networking. All communication between the api and wallet is end-to-end encrypted and your privacy is protected.* ### Docker for Raspberry Pi diff --git a/package.json b/package.json index 1cd09ee1..2f80336f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shockapi", - "version": "2021.5.20", + "version": "2021.6.14", "description": "", "main": "src/server.js", "scripts": { diff --git a/src/routes.js b/src/routes.js index 95a14930..71bea40c 100644 --- a/src/routes.js +++ b/src/routes.js @@ -486,7 +486,11 @@ module.exports = async ( }) app.get('/tunnel/status', async (req, res) => { - res.json({ uri: await Storage.getItem('tunnel/url') }) + const [relayId, relayUrl] = await Promise.all([ + Storage.getItem('relay/id'), + Storage.getItem('relay/url') + ]) + res.json({ uri: `${relayId}@${relayUrl}` }) }) /** diff --git a/utils/lightningServices/channelRequests.js b/utils/lightningServices/channelRequests.js index d8a969eb..4598193f 100644 --- a/utils/lightningServices/channelRequests.js +++ b/utils/lightningServices/channelRequests.js @@ -3,7 +3,7 @@ const fetch = require('node-fetch') const Storage = require('node-persist') const { listPeers, connectPeer,getInfo } = require('./v2') -const handlerBaseUrl = "https://channels.shock.network" +const handlerBaseUrl = "https://channels.shock.network:4444" /** *