[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Tolerate redundant identical last hop in mbox address a...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv26484/lib/mixminion

Modified Files:
	ClientDirectory.py 
Log Message:
Tolerate redundant identical last hop in mbox address and path [bug 4]

Index: ClientDirectory.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientDirectory.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ClientDirectory.py	7 Nov 2003 09:07:54 -0000	1.10
+++ ClientDirectory.py	7 Nov 2003 09:26:36 -0000	1.11
@@ -577,7 +577,8 @@
             # Make the exit hop _not_ be None; deal with getPath brokenness.
             #XXXX refactor this.
             if lastHop:
-                p.append(lastHop)
+                if not p or p[-1].lower()!=lastHop.lower():
+                    p.append(lastHop)
             elif p[-1] == None and not exitAddress.isReply:
                 p[-1] = prng.pick(plausibleExits)