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] 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')