[Feature] default cert from settings #155

This commit is contained in:
Alireza Ahmadi
2023-04-09 12:58:11 +02:00
parent e6c23caa1d
commit f5f90d81a3
7 changed files with 30 additions and 6 deletions

View File

@@ -96,6 +96,10 @@
clientStats = this.dbInbound.clientStats ? this.dbInbound.clientStats.find(stats => stats.email === email) : null
return clientStats ? clientStats['enable'] : true
},
setDefaultCertData(){
inModal.inbound.stream.tls.certs[0].certFile = app.defaultCert;
inModal.inbound.stream.tls.certs[0].keyFile = app.defaultKey;
},
getNewEmail(client) {
var chars = 'abcdefghijklmnopqrstuvwxyz1234567890';
var string = '';