mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
fix: set var
This commit is contained in:
parent
23f5b0cefd
commit
193e1ebfca
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ class GameDigMonitorType extends MonitorType {
|
|||
async check(monitor, heartbeat, server) {
|
||||
heartbeat.status = DOWN;
|
||||
|
||||
let host = monitor.hostname;
|
||||
if (net.isIP(host) === 0) {
|
||||
host = await this.resolveHostname(host);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue