mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 08:25:57 +00:00
tls: server: Rename startTls/request to tcpStartTls/tcpRequest
This commit is contained in:
parent
91150c45fd
commit
9a8a14b466
3 changed files with 8 additions and 8 deletions
|
@ -161,8 +161,8 @@ class Monitor extends BeanModel {
|
|||
kafkaProducerMessage: this.kafkaProducerMessage,
|
||||
screenshot,
|
||||
remote_browser: this.remote_browser,
|
||||
request: this.request,
|
||||
startTls: this.getStartTls(),
|
||||
tcpRequest: this.tcpRequest,
|
||||
tcpStartTls: this.getTcpStartTls(),
|
||||
};
|
||||
|
||||
if (includeSensitiveData) {
|
||||
|
@ -331,8 +331,8 @@ class Monitor extends BeanModel {
|
|||
* Parse to boolean
|
||||
* @returns {boolean} Enable STARTTLS for TCP Port (TLS)
|
||||
*/
|
||||
getStartTls() {
|
||||
return Boolean(this.startTls);
|
||||
getTcpStartTls() {
|
||||
return Boolean(this.tcpStartTls);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,8 +18,8 @@ class TlsMonitorType extends MonitorType {
|
|||
const options = {
|
||||
hostname: monitor.hostname,
|
||||
port: monitor.port,
|
||||
useStartTls: monitor.startTls || false,
|
||||
request: monitor.request || null,
|
||||
useStartTls: monitor.tcpStartTls || false,
|
||||
request: monitor.tcpRequest || null,
|
||||
interval: monitor.interval || 30,
|
||||
};
|
||||
|
||||
|
|
|
@ -831,8 +831,8 @@ let needSetup = false;
|
|||
monitor.kafkaProducerAllowAutoTopicCreation;
|
||||
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
||||
bean.remote_browser = monitor.remote_browser;
|
||||
bean.request = monitor.request;
|
||||
bean.startTls = monitor.startTls;
|
||||
bean.tcpRequest = monitor.tcpRequest;
|
||||
bean.tcpStartTls = monitor.tcpStartTls;
|
||||
|
||||
bean.validate();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue