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

+1 -1
View File
@@ -284,7 +284,7 @@ ${err.stack}`
);
}
connection = new HostConnection(data, connector, this.controller);
connection = new HostConnection(data, connector, this.controller, this.remoteAddr(req));
connector.on("close", () => {
if (this.hostConnections.get(data.id) === connection) {
this.hostConnections.delete(data.id);