Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Disable starttls for emails on localhost

Chocobozzz376220e80e7f
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 9c105a5753..1b905e5106 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -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
})