Disable starttls for emails on localhost

pull/376/head
Chocobozzz 2018-03-22 15:18:56 +01:00
parent 63ac2857aa
commit 376220e80e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Emailer {
secure: CONFIG.SMTP.TLS,
debug: CONFIG.LOG.LEVEL === 'debug',
logger: bunyanLogger as any,
ignoreTLS: isTestInstance(),
ignoreTLS: isTestInstance() || CONFIG.SMTP.HOSTNAME === 'localhost' || CONFIG.SMTP.HOSTNAME === '127.0.0.1',
tls,
auth
})