Add address host connected from to the host info

Provide an easy way to see where a host is connecting from in the web UI
and clusterioctl list.
This commit is contained in:
Hornwitser committed 2024-01-16 21:27:02 +01:00
1 parent de47989527
commit b5ed0800cf
5 files changed
+16 -4

No files matched your search

+5 -2
View File
@@ -64,8 +64,9 @@ export class HostDetails {
public name: string,
public id: number,
public connected: boolean,
public publicAddress?: string,
public tokenValidAfter?: number,
public remoteAddress = "",
public publicAddress: string = "",
public tokenValidAfter: number = 0,
/** Millisecond Unix timestamp this entry was last updated at */
public updatedAt = 0,
public isDeleted = false,
@@ -76,6 +77,7 @@ export class HostDetails {
"name": Type.String(),
"id": Type.Integer(),
"connected": Type.Boolean(),
"remoteAddress": Type.Optional(Type.String()),
"publicAddress": Type.Optional(Type.String()),
"tokenValidAfter": Type.Optional(Type.Number()),
"updatedAt": Type.Optional(Type.Number()),
@@ -88,6 +90,7 @@ export class HostDetails {
json.name,
json.id,
json.connected,
json.remoteAddress,
json.publicAddress,
json.tokenValidAfter,
json.updatedAt,