commit 34ec1b386219d7a6da730ca0359049070897f4fe Author: David Fifield david@bamsoftware.com Date: Tue Jul 17 05:42:00 2012 -0700
Add debug puts to show why the proxy is disabling itself. --- flashproxy.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/flashproxy.js b/flashproxy.js index 8f994f1..592074d 100644 --- a/flashproxy.js +++ b/flashproxy.js @@ -790,19 +790,24 @@ function flashproxy_should_disable() { var re = UA_LIST[i];
if (ua.match(re)) { + puts("Disable because User-Agent matches mobile pattern " + re + "."); return true; } } }
- if (ua.match(/\bsafari\b/i) && !ua.match(/\bchrome\b/i)) + if (ua.match(/\bsafari\b/i) && !ua.match(/\bchrome\b/i)) { /* Disable on Safari because it doesn't have the hybi/RFC type of WebSockets. */ + puts("Disable because User-Agent is Safari."); return true; + }
- if (!WebSocket) + if (!WebSocket) { /* No WebSocket support. */ + puts("Disable because of no WebSocket support."); return true; + }
return false; }
tor-commits@lists.torproject.org