You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/12/22 04:11:10 UTC
[james-project] 04/10: JAMES-3680 SMTPServer: Refactor isRelayingAllowed
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 6bb8f554734fc4b614452b19878ee69f2bb5d124
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Dec 6 16:11:30 2021 +0700
JAMES-3680 SMTPServer: Refactor isRelayingAllowed
---
.../src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java b/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java
index b2f5b38..56d15f3 100644
--- a/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java
+++ b/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java
@@ -235,11 +235,10 @@ public class SMTPServer extends AbstractProtocolAsyncServer implements SMTPServe
@Override
public boolean isRelayingAllowed(String remoteIP) {
- boolean relayingAllowed = false;
if (authorizedNetworks != null) {
- relayingAllowed = SMTPServer.this.authorizedNetworks.matchInetNetwork(remoteIP);
+ return SMTPServer.this.authorizedNetworks.matchInetNetwork(remoteIP);
}
- return relayingAllowed;
+ return false;
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org