mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-06 13:12:33 +02:00
fix(monitor): Avoid changing the timeout value when editing monitor
This commit is contained in:
parent
778363a948
commit
36cab32af8
1 changed files with 7 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue