[smtp-server] correct type of SMTPServerSession.remoteAddress property (#23810)

* correct type of SMTPServerSession.remoteAddress property

* add SMTPServerSession.remotePort property type

* add secure flag type to SMTPServerSession

* envelope.mailFrom property could be false
This commit is contained in:
twawszczak
2018-02-27 16:33:26 +01:00
committed by Andy
parent 83d106420f
commit 757b18759a

View File

@@ -74,7 +74,11 @@ export interface SMTPServerSession {
/**
* the IP address for the connected client
*/
remoteAddress: SMTPServerAddress;
remoteAddress: string;
/**
* port number the connected client
*/
remotePort: number;
/**
* reverse resolved hostname for remoteAddress
*/
@@ -91,6 +95,11 @@ export interface SMTPServerSession {
* Envelope Object
*/
envelope: SMTPServerEnvelope;
/**
* If true, then the connection is using TLS
*/
secure: boolean;
transmissionType: string;
tlsOptions: tls.TlsOptions;
@@ -100,7 +109,7 @@ export interface SMTPServerEnvelope {
/**
* includes an address object or is set to false
*/
mailFrom: SMTPServerAddress;
mailFrom: SMTPServerAddress | false;
/**
* includes an array of address objects
*/