mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-05 15:47:18 +08:00
wip
This commit is contained in:
@@ -55,7 +55,14 @@ class API {
|
||||
return this.call({
|
||||
method: 'get',
|
||||
path: '/wireguard/client',
|
||||
});
|
||||
}).then(clients => clients.map(client => ({
|
||||
...client,
|
||||
createdAt: new Date(client.createdAt),
|
||||
updatedAt: new Date(client.updatedAt),
|
||||
latestHandshakeAt: client.latestHandshakeAt !== null
|
||||
? new Date(client.latestHandshakeAt)
|
||||
: null,
|
||||
})));
|
||||
}
|
||||
|
||||
async createClient({ name }) {
|
||||
|
Reference in New Issue
Block a user