mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
feat: add Globalping support (#6163)
Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Frank Elsinga
autofix-ci[bot]
parent
66c8bac506
commit
bad679ee47
+4
-1
@@ -745,7 +745,7 @@ let needSetup = false;
|
||||
* List of frontend-only properties that should not be saved to the database.
|
||||
* Should clean up before saving to the database.
|
||||
*/
|
||||
const frontendOnlyProperties = ["humanReadableInterval"];
|
||||
const frontendOnlyProperties = ["humanReadableInterval", "responsecheck"];
|
||||
for (const prop of frontendOnlyProperties) {
|
||||
if (prop in monitor) {
|
||||
delete monitor[prop];
|
||||
@@ -823,6 +823,7 @@ let needSetup = false;
|
||||
bean.description = monitor.description;
|
||||
bean.parent = monitor.parent;
|
||||
bean.type = monitor.type;
|
||||
bean.subtype = monitor.subtype;
|
||||
bean.url = monitor.url;
|
||||
bean.wsIgnoreSecWebsocketAcceptHeader = monitor.wsIgnoreSecWebsocketAcceptHeader;
|
||||
bean.wsSubprotocol = monitor.wsSubprotocol;
|
||||
@@ -849,6 +850,8 @@ let needSetup = false;
|
||||
bean.game = monitor.game;
|
||||
bean.maxretries = monitor.maxretries;
|
||||
bean.port = parseInt(monitor.port);
|
||||
bean.location = monitor.location;
|
||||
bean.protocol = monitor.protocol;
|
||||
|
||||
if (isNaN(bean.port)) {
|
||||
bean.port = null;
|
||||
|
||||
Reference in New Issue
Block a user