From 602e6732ab904e2a6383848e0341f7e2aaddb5af Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Tue, 15 May 2012 09:28:43 -0500 Subject: [PATCH] Removed server state saving. That was a bad approach to it. --- ugly_hacks/santiago/protocols/https.py | 8 -------- ugly_hacks/santiago/santiago.py | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ugly_hacks/santiago/protocols/https.py b/ugly_hacks/santiago/protocols/https.py index a130d3a80..8668e9fe4 100644 --- a/ugly_hacks/santiago/protocols/https.py +++ b/ugly_hacks/santiago/protocols/https.py @@ -50,14 +50,6 @@ class Listener(SantiagoListener): self.santiago.query(host, service) - @cherrypy.expose - def save_server(self): - if not cherrypy.request.remote.ip.startswith("127.0.0"): - logging.debug("protocols.https.save_server: Request from non-local IP") - return - - self.santiago.save_server() - class Sender(SantiagoSender): def __init__(self, santiago, proxy_host, proxy_port): diff --git a/ugly_hacks/santiago/santiago.py b/ugly_hacks/santiago/santiago.py index 1ca37ec0b..fe3446034 100644 --- a/ugly_hacks/santiago/santiago.py +++ b/ugly_hacks/santiago/santiago.py @@ -536,3 +536,4 @@ if __name__ == "__main__": hosting, consuming, mykey) santiago_b.start() + logging.debug("Santiago finished!")