aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-22 15:18:56 +0100
committerChocobozzz <me@florianbigard.com>2018-03-22 15:18:56 +0100
commit376220e80e7f544808dce5324de676eed6dc6f43 (patch)
tree7c0740bfd1f59acff5776bca7bfe0ef9fe09e5ef /server
parent63ac2857aa6550232a1727a395c40e722c32710d (diff)
downloadPeerTube-376220e80e7f544808dce5324de676eed6dc6f43.tar.gz
PeerTube-376220e80e7f544808dce5324de676eed6dc6f43.tar.zst
PeerTube-376220e80e7f544808dce5324de676eed6dc6f43.zip
Disable starttls for emails on localhost
Diffstat (limited to 'server')
-rw-r--r--server/lib/emailer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 9c105a575..1b905e510 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -46,7 +46,7 @@ class Emailer {
46 secure: CONFIG.SMTP.TLS, 46 secure: CONFIG.SMTP.TLS,
47 debug: CONFIG.LOG.LEVEL === 'debug', 47 debug: CONFIG.LOG.LEVEL === 'debug',
48 logger: bunyanLogger as any, 48 logger: bunyanLogger as any,
49 ignoreTLS: isTestInstance(), 49 ignoreTLS: isTestInstance() || CONFIG.SMTP.HOSTNAME === 'localhost' || CONFIG.SMTP.HOSTNAME === '127.0.0.1',
50 tls, 50 tls,
51 auth 51 auth
52 }) 52 })