[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Exclude proxies that don't send r=1.
commit 676ee2d2c5d29d387389a520caa9f80bafd38f78
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Tue Jun 11 07:43:47 2013 -0700
Exclude proxies that don't send r=1.
Most proxies should have refreshed themselves since a9c43cf5.
---
facilitator/facilitator.cgi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/facilitator/facilitator.cgi b/facilitator/facilitator.cgi
index 266905d..3adbc15 100755
--- a/facilitator/facilitator.cgi
+++ b/facilitator/facilitator.cgi
@@ -58,6 +58,11 @@ def do_get():
if len(path_parts) == 2 and path_parts[0] == "reg":
url_reg(path_parts[1])
elif len(path_parts) == 0:
+ # Check for recent enough flash proxy protocol.
+ r = fs.getlist("r")
+ if len(r) != 1 or r[0] != "1":
+ exit_error(400)
+
try:
reg = fac.get_reg(FACILITATOR_ADDR, remote_addr) or ""
except Exception:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits