tls: server: Rename startTls/request to tcpStartTls/tcpRequest

This commit is contained in:
Martin Rubli 2024-06-01 13:46:16 +02:00
parent 91150c45fd
commit 9a8a14b466
3 changed files with 8 additions and 8 deletions

View file

@ -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);
} }
/** /**

View file

@ -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,
}; };

View file

@ -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();