[tor-commits] [flashproxy/master] Send the list of currently handled clients in proxy polling messages.

dcf at torproject.org dcf at torproject.org
Fri Jun 7 20:06:11 UTC 2013


commit 1772539eff9d17e8f825a685bb3ab94d4e0abe85
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Sep 10 21:26:49 2012 -0700

    Send the list of currently handled clients in proxy polling messages.
---
 proxy/flashproxy.js |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 63413fc..59b3d92 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -544,6 +544,9 @@ function FlashProxy() {
 
         /* Flash proxy protocol revision. */
         params = [["r", "1"]];
+        /* Clients we're currently handling. */
+        for (var i = 0; i < this.proxy_pairs.length; i++)
+            params.push(["client", format_addr(this.proxy_pairs[i].client_addr)]);
         url = this.fac_url.replace(/\?.*/, "") + "?" + build_query_string(params);
         xhr = new XMLHttpRequest();
         try {





More information about the tor-commits mailing list