use local nodes for requests
This commit is contained in:
parent
0c18dad1b5
commit
2f821bf6a7
6 changed files with 43 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue