Skip to content

Commit

Permalink
smtp_client: run "secured" once, fixes haraka#3020
Browse files Browse the repository at this point in the history
auth_proxy: run "secured" only once, improvement for haraka#3022
  • Loading branch information
msimerson committed Mar 30, 2022
1 parent e10b563 commit 2defcf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/auth/auth_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ exports.try_auth_proxy = function (connection, hosts, user, passwd, cb) {
cert = self.config.get(self.tls_cfg.main.cert || 'tls_cert.pem', 'binary');
if (key && cert) {
this.on('secure', () => {
if (secure) return;
secure = true;
socket.send_command('EHLO', connection.local.host);
});
Expand Down

0 comments on commit 2defcf3

Please sign in to comment.