mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Update beammp.js (#558)
Use resolved IP in case of hostname entered since serverinfo only returns IP
This commit is contained in:
parent
b0af081d36
commit
181a1b7644
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ export default class beammp extends Core {
|
||||||
master.options = this.options
|
master.options = this.options
|
||||||
const masterState = await master.runOnceSafe()
|
const masterState = await master.runOnceSafe()
|
||||||
const servers = masterState.raw.servers
|
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) {
|
if (!server) {
|
||||||
throw new Error('Server not found in the master list')
|
throw new Error('Server not found in the master list')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue