From ecf3dfcc5d6297a139d3a0616aca1faffb7c949a Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Wed, 23 May 2012 21:39:25 -0500 Subject: [PATCH] Added output format parameter TODO. --- ugly_hacks/santiago/protocols/https.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ugly_hacks/santiago/protocols/https.py b/ugly_hacks/santiago/protocols/https.py index 5ba4b46f6..6f3345df5 100644 --- a/ugly_hacks/santiago/protocols/https.py +++ b/ugly_hacks/santiago/protocols/https.py @@ -80,8 +80,11 @@ class Listener(SantiagoListener): @cherrypy.expose @cherrypy.tools.json_out() def where(self, host, service): - """Show where a host is providing me services.""" + """Show where a host is providing me services. + TODO: make the output format a parameter. + + """ if not cherrypy.request.remote.ip.startswith("127.0.0."): logging.debug("protocols.https.query: Request from non-local IP") return @@ -101,13 +104,13 @@ class Listener(SantiagoListener): @cherrypy.expose def pdb(self): """Set a trace.""" - + if not cherrypy.request.remote.ip.startswith("127.0.0."): logging.debug("protocols.https.query: Request from non-local IP") return import pdb; pdb.set_trace() - + class Sender(SantiagoSender): def __init__(self, santiago, proxy_host, proxy_port):