mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Added output format parameter TODO.
This commit is contained in:
parent
b7c89ed1b3
commit
ecf3dfcc5d
@ -80,8 +80,11 @@ class Listener(SantiagoListener):
|
|||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
def where(self, host, service):
|
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."):
|
if not cherrypy.request.remote.ip.startswith("127.0.0."):
|
||||||
logging.debug("protocols.https.query: Request from non-local IP")
|
logging.debug("protocols.https.query: Request from non-local IP")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user