From 9c09fb6ef6a0668bcc5d532e07641ed27fd2ab84 Mon Sep 17 00:00:00 2001 From: burris Date: Fri, 13 Sep 2002 20:57:27 +0000 Subject: [PATCH] fix bug in find_node not encoding target properly --- khashmir.py | 2 +- knode.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/khashmir.py b/khashmir.py index d8b9df4..7eec1c8 100644 --- a/khashmir.py +++ b/khashmir.py @@ -211,7 +211,7 @@ class Khashmir(xmlrpc.XMLRPC): return self.node.senderDict() def xmlrpc_find_node(self, target, sender): - nodes = self.table.findNodes(target) + nodes = self.table.findNodes(target.data) nodes = map(lambda node: node.senderDict(), nodes) ip = self.crequest.getClientIP() sender['host'] = ip diff --git a/knode.py b/knode.py index 8a38462..c9a41dd 100644 --- a/knode.py +++ b/knode.py @@ -12,7 +12,7 @@ class KNode(Node): return df def findNode(self, target, sender): df = Deferred() - f = factory('find_node', (target, sender), df.callback, df.errback) + f = factory('find_node', (Binary(target), sender), df.callback, df.errback) reactor.connectTCP(self.host, self.port, f) return df def storeValue(self, key, value, sender): -- 2.39.5