mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Port 2465 should have implicit TLS from byte 1
This commit is contained in:
parent
02c67ef532
commit
2288c9c65c
@ -14,8 +14,10 @@ import { Resend } from 'resend';
|
||||
import { getTenancy } from './tenancies';
|
||||
|
||||
export function isSecureEmailPort(port: number | string) {
|
||||
// "secure" in most SMTP clients means implicit TLS from byte 1 (SMTPS)
|
||||
// STARTTLS ports (25/587/2587) should return false.
|
||||
let parsedPort = parseInt(port.toString());
|
||||
return parsedPort === 465;
|
||||
return parsedPort === 465 || parsedPort === 2465;
|
||||
}
|
||||
|
||||
export type LowLevelEmailConfig = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user