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,
|
kafkaProducerMessage: this.kafkaProducerMessage,
|
||||||
screenshot,
|
screenshot,
|
||||||
remote_browser: this.remote_browser,
|
remote_browser: this.remote_browser,
|
||||||
request: this.request,
|
tcpRequest: this.tcpRequest,
|
||||||
startTls: this.getStartTls(),
|
tcpStartTls: this.getTcpStartTls(),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeSensitiveData) {
|
if (includeSensitiveData) {
|
||||||
|
@ -331,8 +331,8 @@ class Monitor extends BeanModel {
|
||||||
* Parse to boolean
|
* Parse to boolean
|
||||||
* @returns {boolean} Enable STARTTLS for TCP Port (TLS)
|
* @returns {boolean} Enable STARTTLS for TCP Port (TLS)
|
||||||
*/
|
*/
|
||||||
getStartTls() {
|
getTcpStartTls() {
|
||||||
return Boolean(this.startTls);
|
return Boolean(this.tcpStartTls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,8 +18,8 @@ class TlsMonitorType extends MonitorType {
|
||||||
const options = {
|
const options = {
|
||||||
hostname: monitor.hostname,
|
hostname: monitor.hostname,
|
||||||
port: monitor.port,
|
port: monitor.port,
|
||||||
useStartTls: monitor.startTls || false,
|
useStartTls: monitor.tcpStartTls || false,
|
||||||
request: monitor.request || null,
|
request: monitor.tcpRequest || null,
|
||||||
interval: monitor.interval || 30,
|
interval: monitor.interval || 30,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -831,8 +831,8 @@ let needSetup = false;
|
||||||
monitor.kafkaProducerAllowAutoTopicCreation;
|
monitor.kafkaProducerAllowAutoTopicCreation;
|
||||||
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
||||||
bean.remote_browser = monitor.remote_browser;
|
bean.remote_browser = monitor.remote_browser;
|
||||||
bean.request = monitor.request;
|
bean.tcpRequest = monitor.tcpRequest;
|
||||||
bean.startTls = monitor.startTls;
|
bean.tcpStartTls = monitor.tcpStartTls;
|
||||||
|
|
||||||
bean.validate();
|
bean.validate();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue