fix for compat mode
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 14 Sep 2011 16:30:24 +0000 (18:30 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 14 Sep 2011 16:30:24 +0000 (18:30 +0200)
system/TestPool.py

index 87e1b97..f1ffa6d 100644 (file)
@@ -37,7 +37,7 @@ class TestPool:
     # let's be flexible
     def match (self,triple,hostname_or_ip):
         (h,i,u)=triple
-        return h.find(hostname_or_ip)>=0  or (i and i.find(hostname_or_ip)>=0)
+        return h.find(hostname_or_ip)>=0  or (i and i.find(hostname_or_ip)>=0) or hostname_or_ip.find(h)==0
 
     def locate_entry (self, hostname_or_ip):
         for (h,i,u) in self.pool: