Skip to content

Commit

Permalink
FIX: opening tunnel after installation (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Jun 1, 2022
1 parent 4fc1739 commit 253685f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
let grafana = services.find(service => service.service.includes('Grafana'))
let grafanaStats = this.pluginServices.find(e => e.name === 'grafana')
let freePort = await ControlService.getAvailablePort({min: grafanaStats.minPort, max: grafanaStats.maxPort})
await ControlService.openTunnels([{dstPort: grafana.ports[0].split(":")[2], localPort: freePort}])
await ControlService.openTunnels([{dstPort: grafana.ports[0].split(":")[2].replace('/tcp',''), localPort: freePort}])
grafanaStats.linkUrl = 'http://localhost:' + freePort
this.$store.commit("updateRunningServices", [grafanaStats]);
}
Expand Down

0 comments on commit 253685f

Please sign in to comment.