Fix port data type #1802

pull/1857/head
Louis Lam 2 years ago
parent a7063b8aca
commit c36d9a4b8b

@ -654,7 +654,7 @@ let needSetup = false;
bean.retryInterval = monitor.retryInterval;
bean.hostname = monitor.hostname;
bean.maxretries = monitor.maxretries;
bean.port = monitor.port;
bean.port = parseInt(monitor.port);
bean.keyword = monitor.keyword;
bean.ignoreTls = monitor.ignoreTls;
bean.expiryNotification = monitor.expiryNotification;

@ -535,7 +535,7 @@ export default {
if (this.monitor.type === "dns") {
this.monitor.port = "53";
} else {
this.monitor.port = "";
this.monitor.port = undefined;
}
}
}

Loading…
Cancel
Save