mirrorlist-server/mirrorlist_server.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 79df6c0e95148c96e08a17198bc49278ea63456e
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Wed Apr 27 18:13:14 2011 -0500
ip -> clientIP
diff --git a/mirrorlist-server/mirrorlist_server.py
b/mirrorlist-server/mirrorlist_server.py
index 9a35bde..751dc0a 100755
--- a/mirrorlist-server/mirrorlist_server.py
+++ b/mirrorlist-server/mirrorlist_server.py
@@ -193,12 +193,12 @@ def client_netblocks(ip):
# fast lookup in the tree; if present, find all the netblocks by deleting the found
one and searching again
# this is safe w/o copying the tree again only because this is the only place the
tree is used, and
# we'll get a new copy of the tree from our parent the next time it fork()s.
- node = host_netblocks_tree.search_best(ip.strNormal())
+ node = host_netblocks_tree.search_best(clientIP.strNormal())
while node is not None:
result.extend(node.data['hosts'])
prefix = node.prefix
host_netblocks_tree.delete(prefix)
- node = host_netblocks_tree.search_best(ip.strNormal())
+ node = host_netblocks_tree.search_best(clientIP.strNormal())
return result
def trim_by_client_country(s, clientCountry):
Show replies by date