From: Martin Schanzenbach Date: Fri, 2 Mar 2012 11:25:45 +0000 (+0000) Subject: -fix proxy X-Git-Tag: initial-import-from-subversion-38251~14497 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d032f15a4612550d6cc8583897c6f68575c1944f;p=oweals%2Fgnunet.git -fix proxy --- 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