Commit 99b01c5d authored by Florian Schmaus's avatar Florian Schmaus Committed by flow

Don't block stanzas send from the service

Fixes OF-724

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13881 b35dd754-fafc-0310-a699-88a17e54d16e
parent 42928ada
...@@ -824,6 +824,9 @@ public class LocalClientSession extends LocalSession implements ClientSession { ...@@ -824,6 +824,9 @@ public class LocalClientSession extends LocalSession implements ClientSession {
*/ */
@Override @Override
public boolean canProcess(Packet packet) { public boolean canProcess(Packet packet) {
// All packets from our own service are implicitly not blocked
if (packet.getFrom().getDomain().equals(serverName)) return true;
PrivacyList list = getActiveList(); PrivacyList list = getActiveList();
if (list != null) { if (list != null) {
// If a privacy list is active then make sure that the packet is not blocked // If a privacy list is active then make sure that the packet is not blocked
......
...@@ -74,7 +74,7 @@ public abstract class LocalSession implements Session { ...@@ -74,7 +74,7 @@ public abstract class LocalSession implements Session {
protected SessionManager sessionManager; protected SessionManager sessionManager;
private String serverName; protected String serverName;
private long startDate = System.currentTimeMillis(); private long startDate = System.currentTimeMillis();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment