diff --git a/CHANGELOG.md b/CHANGELOG.md index 17d8e6a..b27dfb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,9 @@ * 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) * Myth of Empires - Added support. +* 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`. 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')