summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-18 11:32:39 +0000
committerErik Johnston <erik@matrix.org>2015-02-18 11:32:39 +0000
commitb68e4a729ff91372a3a7269acc08c1f77584b0f4 (patch)
treeaadd0b5b9adbccc91681ea41533711c61e782a2e
parentDon't send failure to self (diff)
downloadsynapse-b68e4a729ff91372a3a7269acc08c1f77584b0f4.tar.xz
Discard destination 'localhost'
-rw-r--r--synapse/federation/transaction_queue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index f0041d4d12..06944eefb9 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -107,7 +107,7 @@ class TransactionQueue(object):
     def enqueue_edu(self, edu):
         destination = edu.destination
 
-        if destination == self.server_name:
+        if destination == self.server_name or destination == "localhost":
             return
 
         deferred = defer.Deferred()
@@ -128,7 +128,7 @@ class TransactionQueue(object):
 
     @defer.inlineCallbacks
     def enqueue_failure(self, failure, destination):
-        if destination == self.server_name:
+        if destination == self.server_name or destination == "localhost":
             return
 
         deferred = defer.Deferred()