Implement basic proxy to connect to stopped instances

This commit is contained in:
Danielv123 committed 2026-10-29 20:53:31 +01:00
1 parent 296d1dce99
commit 80f244fddd
8 files changed
+768

No files matched your search

+7
View File
@@ -424,6 +424,13 @@ export default class Instance extends lib.Link {
if (wasPaused) {
this.hooks.autoPauseChanged.invoke(false);
}
const hostId = this.config.get("instance.assigned_host");
if (hostId !== null) {
this.sendTo(
"controller",
new lib.InstancePlayerRouteUpdateEvent(name, this.id, hostId, this.server.gamePort, Date.now()),
);
}
this.hooks.playerEvent.invoke(event);
}