mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Implement basic proxy to connect to stopped instances
This commit is contained in:
8 files changed
+768
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user