mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Merge pull request #961 from bbassie/feature/instance-host-broadcast
Deliver broadcasts to all hosts, not just the local one
This commit is contained in:
4 files changed
+53
-2
No files matched your search
@@ -183,6 +183,12 @@ export class HostRouter {
|
||||
if (this.host !== origin && (!plugin || this.host.serverPlugins.has(plugin))) {
|
||||
this.host.connector.forward(message);
|
||||
}
|
||||
} else if (dst.id === lib.Address.host) {
|
||||
// Sent up to the controller, which passes it on to the other
|
||||
// hosts. Nothing left to do when it came from there.
|
||||
if (this.host !== origin && (!plugin || this.host.serverPlugins.has(plugin))) {
|
||||
this.host.connector.forward(message);
|
||||
}
|
||||
} else if (dst.id === lib.Address.control) {
|
||||
if (this.host !== origin) {
|
||||
if (!plugin || this.host.serverPlugins.has(plugin)) {
|
||||
|
||||
Reference in new issue
Block a user