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

[minion-cvs] Bugfix: path generation that put a pre-0.0.6 server (to...



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

Modified Files:
	ServerInfo.py 
Log Message:
Bugfix: path generation that put a pre-0.0.6 server (tonga or peertech) before psycocat (which has no fixed IP) would crash.

Index: ServerInfo.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ServerInfo.py,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- ServerInfo.py	7 Mar 2004 06:31:46 -0000	1.83
+++ ServerInfo.py	27 Apr 2004 06:00:10 -0000	1.84
@@ -396,6 +396,8 @@
             return 1
         myOutProtocols = self.getOutgoingMMTPProtocols()
         otherInProtocols = otherDesc.getIncomingMMTPProtocols()
+        if not self.getHostname() and not other.getIP():
+            return 0
         for out in myOutProtocols:
             if out in otherInProtocols:
                 return 1