Merge pull request #394 from shocknet/fix/tunnel-endpoint
return new uri
This commit is contained in:
commit
502bf01fe4
1 changed files with 5 additions and 1 deletions
|
|
@ -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}` })
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue