projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ac285
)
Disable starttls for emails on localhost
author
Chocobozzz
<me@florianbigard.com>
Thu, 22 Mar 2018 14:18:56 +0000
(15:18 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 22 Mar 2018 14:18:56 +0000
(15:18 +0100)
server/lib/emailer.ts
patch
|
blob
|
history
diff --git
a/server/lib/emailer.ts
b/server/lib/emailer.ts
index 9c105a57530021c7c163d10dc5aeb076d05ff6d5..1b905e5106a3162ff161cc318fc6c2f811009f55 100644
(file)
--- 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
})