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

View file

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

View file

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