mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Merge branch 'master' into community-pagination-
This commit is contained in:
+5
-1
@@ -64,7 +64,11 @@ const options = {
|
||||
};
|
||||
|
||||
if (SMTP_PORT) {
|
||||
options.port = SMTP_PORT;
|
||||
try {
|
||||
options.port = parseInt(SMTP_PORT);
|
||||
} catch (e) {
|
||||
throw new Error('TALK_SMTP_PORT is not an integer');
|
||||
}
|
||||
} else {
|
||||
options.port = 25;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user