Update beammp.js

Use resolved IP in case of hostname entered since serverinfo only returns IP
This commit is contained in:
Rephot 2024-03-15 15:54:26 +11:00 committed by GitHub
parent b0af081d36
commit b5372edf3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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