[tor-commits] [flashproxy/master] Break out a proxy_main function for after argument parsing.
dcf at torproject.org
dcf at torproject.org
Mon Apr 9 04:08:42 UTC 2012
commit cace7b86e8a3d21c6705368d9bdae4b559884b5d
Author: David Fifield <david at bamsoftware.com>
Date: Tue Mar 13 10:42:22 2012 -0700
Break out a proxy_main function for after argument parsing.
---
flashproxy.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/flashproxy.js b/flashproxy.js
index ff9b1e6..05674c4 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -106,8 +106,7 @@ function FlashProxy()
this.start = function() {
var query;
- var fac_addr, fac_url;
- var xhr;
+ var fac_addr;
query = parse_query_string(window.location.search.substr(1));
@@ -117,6 +116,13 @@ function FlashProxy()
return;
}
+ this.proxy_main(fac_addr);
+ };
+
+ this.proxy_main = function(fac_addr) {
+ var fac_url;
+ var xhr;
+
this.puts("Using facilitator " + format_addr(fac_addr) + ".");
fac_url = "http://" + encodeURIComponent(fac_addr.host)
More information about the tor-commits
mailing list