mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-04 03:45:19 +08:00
Allow disabling logging for specific source IPs
This commit is contained in:
parent
69bc32db6e
commit
75f9420c3c
2 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ class IMAPServer extends EventEmitter {
|
|||
if (params[1]) {
|
||||
socketOptions.remoteAddress = params[1].trim().toLowerCase();
|
||||
|
||||
socketOptions.ignore = this.options.ignoredHosts && this.options.ignoredHosts.includes(socket.remoteAddress);
|
||||
socketOptions.ignore = this.options.ignoredHosts && this.options.ignoredHosts.includes(socketOptions.remoteAddress);
|
||||
|
||||
if (!socketOptions.ignore) {
|
||||
this.logger.info(
|
||||
|
|
|
@ -294,7 +294,7 @@ class POP3Server extends EventEmitter {
|
|||
if (params[1]) {
|
||||
socketOptions.remoteAddress = params[1].trim().toLowerCase();
|
||||
|
||||
socketOptions.ignore = this.options.ignoredHosts && this.options.ignoredHosts.includes(socket.remoteAddress);
|
||||
socketOptions.ignore = this.options.ignoredHosts && this.options.ignoredHosts.includes(socketOptions.remoteAddress);
|
||||
|
||||
if (!socketOptions.ignore) {
|
||||
this.logger.info(
|
||||
|
|
Loading…
Reference in a new issue