From d032f15a4612550d6cc8583897c6f68575c1944f Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 2 Mar 2012 11:25:45 +0000 Subject: [PATCH] -fix proxy --- src/gns/proxy/proxy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gns/proxy/proxy.py b/src/gns/proxy/proxy.py index 8fdec115e..ee5eb41ec 100644 --- a/src/gns/proxy/proxy.py +++ b/src/gns/proxy/proxy.py @@ -104,9 +104,10 @@ class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler): data = i.recv(8192) if data: if (re.match("(\w+\.)*gnunet", self.host_port[0])): - arr = self.host_port[0].split(' ') + arr = self.host_port[0].split('.') arr.pop(0) - data = re.sub(r'(a href="http://(\w+\.)*)(\+)', r'\1'+self.host_port[0], data) + data = re.sub(r'(a href="http://(\w+\.)*)(\+)', + r'\1'+'.'.join(arr), data) print data out.send(data) count = 0 -- 2.25.1