1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-07-15 01:44:19 +02:00

Merge branch 'master' into master

This commit is contained in:
Jan K.
2024-11-21 07:27:50 +01:00
committed by GitHub

View File

@ -1443,12 +1443,15 @@ message HealthCheckResponse {
}
}
// Set a default timeout if the monitor type has changed or if it's a new monitor
if (oldType || this.isAdd) {
if (this.monitor.type === "snmp") {
// snmp is not expected to be executed via the internet => we can choose a lower default timeout
this.monitor.timeout = 5;
} else {
this.monitor.timeout = 48;
}
}
// Set default SNMP version
if (!this.monitor.snmpVersion) {