use local nodes for requests

This commit is contained in:
j 2014-05-13 12:36:02 +02:00
commit 2f821bf6a7
6 changed files with 43 additions and 26 deletions

View file

@ -46,7 +46,7 @@ class NodeHandler(tornado.web.RequestHandler):
content = {}
if valid(key, data, sig):
action, args = json.loads(data)
print 'action', action, args
print key, 'action', action, args
if action == 'ping':
content = {
'ip': request.remote_addr