From 181a1b7644856bdd811826dda7b66425382c20b9 Mon Sep 17 00:00:00 2001 From: Rephot <41567831+Rephot@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:01:15 +1100 Subject: [PATCH 1/2] Update beammp.js (#558) Use resolved IP in case of hostname entered since serverinfo only returns IP --- protocols/beammp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/beammp.js b/protocols/beammp.js index a24e8cb..87deda5 100644 --- a/protocols/beammp.js +++ b/protocols/beammp.js @@ -7,7 +7,7 @@ export default class beammp extends Core { master.options = this.options const masterState = await master.runOnceSafe() const servers = masterState.raw.servers - const server = servers.find(s => s.ip === this.options.host) + const server = servers.find(s => s.ip === this.options.address) if (!server) { throw new Error('Server not found in the master list') From 1fb162259530b460733da77ad9de69ccab6ff036 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Thu, 28 Mar 2024 03:02:20 +0200 Subject: [PATCH 2/2] docs: update changelog to list beammp address fix --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c3fe9..c60e7bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,8 @@ * Grand Theft Auto: San Andreas OpenMP - Fixed `state.players` returning an empty array (By @Focus04 #547) * Perf: Re-write of the `core` class. * Perf: Remove many if statements from `GameSpy2`. -* fix: BeamMP maxplayers that was displaying player count (By @dgibbs64 #551) +* Fix: BeamMP maxplayers that was displaying player count (By @dgibbs64 #551) +* Fix: BeamMP filter servers by address, not host (By @Rephot #558) ## 5.0.0-beta.2 * Fixed support for projects using `require`.