commit 2ccd84f9f079cd00aa523d7f5b4cb0e5211a5b26 Author: David Fifield david@bamsoftware.com Date: Wed Dec 12 02:06:27 2012 -0800
Factor out a begin_proxy function to wrap make_proxy_pair. --- proxy/flashproxy.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index 13a77f5..b18e9b5 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -450,7 +450,7 @@ function FlashProxy() { return; } if (client_addr !== undefined && relay_addr !== undefined) { - this.make_proxy_pair(client_addr, relay_addr); + this.begin_proxy(client_addr, relay_addr); } else if (client_addr !== undefined) { puts("Error: the "client" parameter requires "relay" also.") this.die(); @@ -528,6 +528,10 @@ function FlashProxy() { puts("Facilitator: got client:" + repr(client_addr) + " " + "relay:" + repr(relay_addr) + ".");
+ this.begin_proxy(client_addr, relay_addr); + }; + + this.begin_proxy = function(client_addr, relay_addr) { this.make_proxy_pair(client_addr, relay_addr); };
tor-commits@lists.torproject.org