Commit f7013da1 authored by mehdi's avatar mehdi

adding display of hostname in interface

parent 2a2e107f
......@@ -145,6 +145,7 @@
<td><span data-toggle="tooltip" :title="prettyFullDate(entry.created)">{{prettyDate(entry.created)}}</span></td>
<td>
<span v-if="entry.connected && entry.connected.ip && entry.connected.vpnIp">
Hostname: {{entry.name}}.{{user}}<br>
VPN: {{entry.connected.vpnIp}}<br>
Remote: {{entry.connected.ip}}
</span>
......
......@@ -14,6 +14,7 @@
session: false,
entries: [],
isAdmin: false,
user: null,
connectedClients: {},
createKeyData: '',
createKeyError: null,
......@@ -83,6 +84,7 @@
this.session = true
this.entries = result.body.entries
this.user = result.body.user
if (result.body.admin && result.body.admin.connectedClients) {
this.isAdmin = true
this.connectedClients = result.body.admin.connectedClients
......
......@@ -148,7 +148,8 @@ const list = (req, res, next) => {
entries: list,
admin: req.user.admin
? {connectedClients}
: false
: false,
user
}))
.catch(error => next(new HttpError(500, error)))
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment