projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ca111
)
-fix proxy
author
Martin Schanzenbach
<mschanzenbach@posteo.de>
Fri, 2 Mar 2012 11:25:45 +0000
(11:25 +0000)
committer
Martin Schanzenbach
<mschanzenbach@posteo.de>
Fri, 2 Mar 2012 11:25:45 +0000
(11:25 +0000)
src/gns/proxy/proxy.py
patch
|
blob
|
history
diff --git
a/src/gns/proxy/proxy.py
b/src/gns/proxy/proxy.py
index 8fdec115e2062cfb6ed5cf7d392b08c78a8a18c7..ee5eb41ecc0739b51b02982d024a3f4174e6d0ed 100644
(file)
--- 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